Skip to content

Commit

Permalink
Merge pull request #334 from maykinmedia/issue-mm-internal-470
Browse files Browse the repository at this point in the history
Fixed MM internal #470 -- Ensuring correct mimetype is used for images, enabling DigiD Mock by default when using docker-compose
  • Loading branch information
alextreme authored Nov 18, 2022
2 parents 0109b0d + 71e9ecc commit 636edf2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ RUN npm run build


# Stage 3 - Build docker image suitable for production

FROM python:3.9-slim-buster

# Stage 3.1 - Set up the needed production dependencies
# install all the dependencies for GeoDjango
# Note: mime-support becomes media-types in Debian Bullseye (required for correctly serving mime-types for images)
# Also install the dependencies for GeoDjango

RUN apt-get update && apt-get install -y --no-install-recommends \
procps \
vim \
Expand All @@ -77,6 +80,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libgdk-pixbuf2.0-0 \
libffi-dev \
shared-mime-info \
mime-support \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app
Expand Down Expand Up @@ -104,6 +108,7 @@ USER maykin
ARG COMMIT_HASH
ENV GIT_SHA=${COMMIT_HASH}
ENV DJANGO_SETTINGS_MODULE=open_inwoner.conf.docker
ENV DIGID_MOCK=True

ARG SECRET_KEY=dummy

Expand Down

0 comments on commit 636edf2

Please sign in to comment.