Skip to content

Commit 467610d

Browse files
authored
Merge pull request #8896 from norbusan/fix-docker-libmagic2
Install libmagic in final image, not intermediate ones
2 parents 7703f51 + ad2e32c commit 467610d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN apk update && \
1010
# PDF Generation: weasyprint (libffi-dev jpeg-dev already included above)
1111
RUN apk add --virtual gdk-pixbuf-dev
1212

13-
RUN apk --no-cache add postgresql-libs ca-certificates libxslt jpeg zlib file libxml2 libmagic
13+
RUN apk --no-cache add postgresql-libs ca-certificates libxslt jpeg zlib file libxml2
1414
# PDF Generation: weasyprint
1515
RUN apk --no-cache add cairo-dev pango-dev ttf-opensans
1616

@@ -35,6 +35,8 @@ RUN poetry export -f requirements.txt --without-hashes --only main | poetry run
3535

3636
FROM base
3737

38+
RUN apk --no-cache add libmagic
39+
3840
COPY --from=builder /opt/pysetup/.venv /opt/pysetup/.venv
3941

4042
ENV PATH="/opt/pysetup/.venv/bin:$PATH"

0 commit comments

Comments
 (0)