diff options
Diffstat (limited to 'server/Dockerfile')
| -rw-r--r-- | server/Dockerfile | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/server/Dockerfile b/server/Dockerfile index 4beec1c..3e4dadf 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -7,8 +7,13 @@ WORKDIR /opt/app RUN apk --no-cache add \ python3 \ python3-dev \ - ffmpeg \ py3-pip \ + build-base \ + libheif \ + libheif-dev \ + libavif \ + libavif-dev \ + ffmpeg \ # from requirements.txt: py3-yaml \ py3-psycopg2 \ @@ -18,26 +23,21 @@ RUN apk --no-cache add \ py3-pillow \ py3-pynacl \ py3-tz \ - py3-pyrfc3339 \ - build-base \ - && apk --no-cache add \ - libheif \ - libavif \ - libheif-dev \ - libavif-dev \ - && pip3 install --no-cache-dir --disable-pip-version-check \ - alembic \ + py3-pyrfc3339 +RUN pip3 install --no-cache-dir --disable-pip-version-check \ + "alembic>=0.8.5" \ "coloredlogs==5.0" \ - youtube_dl \ - pillow-avif-plugin \ - pyheif-pillow-opener \ - && apk --no-cache del py3-pip + "pyheif==0.6.1" \ + "heif-image-plugin>=0.3.2" \ + yt-dlp \ + "pillow-avif-plugin~=1.1.0" +RUN apk --no-cache del py3-pip COPY ./ /opt/app/ RUN rm -rf /opt/app/szurubooru/tests -FROM prereqs as testing +FROM --platform=$BUILDPLATFORM prereqs as testing WORKDIR /opt/app RUN apk --no-cache add \ @@ -83,6 +83,9 @@ ARG PORT=6666 ENV PORT=${PORT} EXPOSE ${PORT} +ARG THREADS=4 +ENV THREADS=${THREADS} + VOLUME ["/data/"] ARG DOCKER_REPO |