11# Build environment has gcc and develop header files.
22# The installed files are copied to the smaller runtime container.
3- FROM python:3.6 -stretch as build-image
3+ FROM python:3.8 -stretch as build-image
44ENV DEBIAN_FRONTEND=noninteractive \
55 PYTHONUNBUFFERED=1 \
66 PIP_NO_CACHE_DIR=off
@@ -12,8 +12,8 @@ ARG PIP_REQUIREMENTS=/app/src/requirements/docker.txt
1212RUN pip install -r $PIP_REQUIREMENTS
1313
1414# Remove unneeded files
15- RUN find /usr/local/lib/python3.6 /site-packages/ -name '*.po' -delete && \
16- find /usr/local/lib/python3.6 /site-packages/tinymce/ -regextype posix-egrep -not -regex '.*/langs/(en|nl).*\. js' -wholename '*/langs/*.js' -delete
15+ RUN find /usr/local/lib/python3.8 /site-packages/ -name '*.po' -delete && \
16+ find /usr/local/lib/python3.8 /site-packages/tinymce/ -regextype posix-egrep -not -regex '.*/langs/(en|nl).*\. js' -wholename '*/langs/*.js' -delete
1717
1818# Node builder
1919FROM node:16-buster as frontend-build
@@ -26,7 +26,7 @@ COPY src/frontend/ /app/src/frontend/
2626RUN npm run gulp
2727
2828# Start runtime container
29- FROM python:3.6 -slim-stretch
29+ FROM python:3.8 -slim-stretch
3030ENV DEBIAN_FRONTEND=noninteractive \
3131 PYTHONUNBUFFERED=1 \
3232 PIP_NO_CACHE_DIR=off \
@@ -59,7 +59,7 @@ HEALTHCHECK --interval=5m --timeout=3s CMD curl -f http://localhost:8080/api/hea
5959
6060# Install dependencies
6161COPY --from=build-image /usr/local/bin/ /usr/local/bin/
62- COPY --from=build-image /usr/local/lib/python3.6 /site-packages/ /usr/local/lib/python3.6 /site-packages/
62+ COPY --from=build-image /usr/local/lib/python3.8 /site-packages/ /usr/local/lib/python3.8 /site-packages/
6363COPY --from=frontend-build /app/src/frontend/static /app/src/frontend/static
6464
6565# Insert application code.
0 commit comments