mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-03-03 19:08:15 +03:00
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:
parent
c13f5bce27
commit
4a71b0b936
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user