summaryrefslogtreecommitdiff
path: root/server/Dockerfile
diff options
context:
space:
mode:
authorHunternif <hunternif@gmail.com>2025-02-15 18:12:57 +0000
committerHunternif <hunternif@gmail.com>2025-02-15 18:12:57 +0000
commit6a5300502df8b4de9c8f269b444cd309f02b28ad (patch)
tree0cf2ba56bce802c94ad324f9eda7a31d37a42e2e /server/Dockerfile
parent34e7c883808738871aed371948a3c9896a95905c (diff)
parent376f687c386f65522b2f65e98b998b21af26ee29 (diff)
Merge branch 'master' into hunternif
Diffstat (limited to 'server/Dockerfile')
-rw-r--r--server/Dockerfile33
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