Using the python:3.7-slim-buster image for later Python version - 3.7.6

(instead of debian:buster-slim, shipped with Python 3.7.3)
This commit is contained in:
Trung Dong Huynh 2020-01-07 13:54:15 +00:00
parent c13f5bce27
commit 4a71b0b936
2 changed files with 4 additions and 12 deletions

View File

@ -1,14 +1,10 @@
FROM debian:buster-slim FROM python:3.7-slim-buster
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1
RUN apt-get update \ RUN apt-get update \
# dependencies for building Python packages # dependencies for building Python packages
&& apt-get install -y build-essential python3-dev python3-pip \ && apt-get install -y build-essential \
# link the system python3 as just python for convenience
&& ln -s `which python3` /usr/local/bin/python \
# update pip et al
&& pip3 install -U pip setuptools wheel \
# psycopg2 dependencies # psycopg2 dependencies
&& apt-get install -y libpq-dev \ && apt-get install -y libpq-dev \
# Translations dependencies # Translations dependencies

View File

@ -9,17 +9,13 @@ RUN npm run build
# Python build stage # Python build stage
{%- endif %} {%- endif %}
FROM debian:buster-slim FROM python:3.7-slim-buster
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1
RUN apt-get update \ RUN apt-get update \
# dependencies for building Python packages # dependencies for building Python packages
&& apt-get install -y build-essential python3-dev python3-pip \ && apt-get install -y build-essential \
# link the system python3 as just python for convenience
&& ln -s `which python3` /usr/local/bin/python \
# update pip et al
&& pip3 install -U pip setuptools wheel \
# psycopg2 dependencies # psycopg2 dependencies
&& apt-get install -y libpq-dev \ && apt-get install -y libpq-dev \
# Translations dependencies # Translations dependencies