Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed MM internal #470 -- Ensuring correct mimetype is used for images, enabling DigiD Mock by default when using docker-compose #334

Merged
merged 2 commits into from
Nov 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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