docker: add model to image.

This commit is contained in:
evazion
2022-06-20 23:44:03 -05:00
parent 55d343cd3d
commit 0bc9cb2372
3 changed files with 8 additions and 1 deletions
+2
View File
@@ -1 +1,3 @@
__pycache__
*.pth
*.pkl
+6 -1
View File
@@ -15,13 +15,18 @@ ENV \
RUN \
apt-get update && \
apt-get install -y --no-install-recommends tini build-essential gfortran libatlas-base-dev && \
apt-get install -y --no-install-recommends tini build-essential gfortran libatlas-base-dev wget && \
pip install "poetry==1.1.13"
COPY pyproject.toml poetry.lock ./
RUN \
python -m poetry install --no-dev && \
rm -rf /root/.cache/pypoetry/artifacts /root/.cache/pypoetry/cache
RUN \
mkdir models && \
wget https://github.com/danbooru/autotagger/releases/download/2022.06.20-233624-utc/model.pth -O models/model.pth
COPY . .
EXPOSE 5000
View File