August 2018
Intermediate to advanced
352 pages
12h 30m
English
Make the following preparations:
$ cd /tmp $ git clone https://github.com/pallets/flask
$ cat /tmp/Dockerfile_2.7 FROM python:2.7 RUN pip install flask pytest ADD flask/ /flask WORKDIR /flask/examples/tutorial RUN pip install -e . CMD ["/usr/local/bin/pytest"]
$ docker image build -t python2.7test -f /tmp/Dockerfile_2.7 .
$ cat /tmp/Dockerfile_3.7 FROM python:3.7 RUN pip install flask pytest ADD flask/ ...
Read now
Unlock full access