mirror of https://github.com/docker/docs.git
parent
475114c052
commit
db6a60b806
|
@ -26,7 +26,7 @@ and a `docker-compose.yml` file. (You can use either a `.yml` or `.yaml` extensi
|
||||||
|
|
||||||
3. Add the following content to the `Dockerfile`.
|
3. Add the following content to the `Dockerfile`.
|
||||||
|
|
||||||
FROM python:2.7
|
FROM python:3
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
RUN mkdir /code
|
RUN mkdir /code
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
@ -46,7 +46,7 @@ and a `docker-compose.yml` file. (You can use either a `.yml` or `.yaml` extensi
|
||||||
|
|
||||||
6. Add the required software in the file.
|
6. Add the required software in the file.
|
||||||
|
|
||||||
Django
|
Django>=1.8,<2.0
|
||||||
psycopg2
|
psycopg2
|
||||||
|
|
||||||
7. Save and close the `requirements.txt` file.
|
7. Save and close the `requirements.txt` file.
|
||||||
|
@ -69,7 +69,7 @@ and a `docker-compose.yml` file. (You can use either a `.yml` or `.yaml` extensi
|
||||||
image: postgres
|
image: postgres
|
||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
command: python manage.py runserver 0.0.0.0:8000
|
command: python3 manage.py runserver 0.0.0.0:8000
|
||||||
volumes:
|
volumes:
|
||||||
- .:/code
|
- .:/code
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in New Issue