Skip to content

Commit 540e0f3

Browse files
authored
Merge pull request #60 from sgvictorino/shrink-docker-image
Reduce build dependencies in Dockerfile
2 parents 91ea062 + 0c2cf19 commit 540e0f3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docker/Dockerfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ COPY ./src/ ./src/
77
COPY ./assets/ ./assets/
88
COPY ./locales/ ./locales/
99

10-
# Rust is needed for orjson
11-
RUN apk add --no-cache git python3 py3-pip rust cargo tini && \
10+
RUN apk add --no-cache git python3 py3-setuptools tini && \
1211
addgroup -g 1000 -S priviblur && \
1312
adduser -u 1000 -S priviblur -G priviblur && \
14-
pip3 install --break-system-packages -r requirements.txt && \
13+
apk add --no-cache py3-pip && \
14+
pip3 install --no-cache-dir --break-system-packages -r requirements.txt && \
15+
pip3 cache purge && \
16+
apk del py3-pip && \
1517
pybabel compile -d locales -D priviblur && \
1618
# chown is needed otherwise git will error out with "fatal: detected dubious ownership in repository at '/priviblur'"
1719
chown -R priviblur:priviblur /priviblur && \

0 commit comments

Comments
 (0)