1
1
# Build environment has gcc and develop header files.
2
2
# 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
4
4
ENV DEBIAN_FRONTEND=noninteractive \
5
5
PYTHONUNBUFFERED=1 \
6
6
PIP_NO_CACHE_DIR=off
@@ -12,8 +12,8 @@ ARG PIP_REQUIREMENTS=/app/src/requirements/docker.txt
12
12
RUN pip install -r $PIP_REQUIREMENTS
13
13
14
14
# 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
17
17
18
18
# Node builder
19
19
FROM node:16-buster as frontend-build
@@ -26,7 +26,7 @@ COPY src/frontend/ /app/src/frontend/
26
26
RUN npm run gulp
27
27
28
28
# Start runtime container
29
- FROM python:3.6 -slim-stretch
29
+ FROM python:3.8 -slim-stretch
30
30
ENV DEBIAN_FRONTEND=noninteractive \
31
31
PYTHONUNBUFFERED=1 \
32
32
PIP_NO_CACHE_DIR=off \
@@ -59,7 +59,7 @@ HEALTHCHECK --interval=5m --timeout=3s CMD curl -f http://localhost:8080/api/hea
59
59
60
60
# Install dependencies
61
61
COPY --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/
63
63
COPY --from=frontend-build /app/src/frontend/static /app/src/frontend/static
64
64
65
65
# Insert application code.
0 commit comments