mirror of https://github.com/docker/docs.git
django.md: fix Python image version (#2991)
Dockerfile's base image was not consistent the the explanation below.
This commit is contained in:
parent
a6ee7cfefe
commit
958fb121b0
|
@ -34,8 +34,8 @@ and a `docker-compose.yml` file. (You can use either a `.yml` or `.yaml` extensi
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
ADD . /code/
|
ADD . /code/
|
||||||
|
|
||||||
This `Dockerfile` starts with a Python 2.7 base image. The base image is
|
This `Dockerfile` starts with a [Python 3 base image](https://hub.docker.com/r/library/python/tags/3/).
|
||||||
modified by adding a new `code` directory. The base image is further modified
|
The base image is modified by adding a new `code` directory. The base image is further modified
|
||||||
by installing the Python requirements defined in the `requirements.txt` file.
|
by installing the Python requirements defined in the `requirements.txt` file.
|
||||||
|
|
||||||
4. Save and close the `Dockerfile`.
|
4. Save and close the `Dockerfile`.
|
||||||
|
|
Loading…
Reference in New Issue