dockerize flask app

Solutions on MaxInterview for dockerize flask app by the best coders in the world

showing results for - "dockerize flask app"
Valentina
06 Jul 2017
1FROM ubuntu:16.04
2
3MAINTANER Your Name "youremail@domain.tld"
4
5RUN apt-get update -y && \
6    apt-get install -y python-pip python-dev
7
8# We copy just the requirements.txt first to leverage Docker cache
9COPY ./requirements.txt /app/requirements.txt
10
11WORKDIR /app
12
13RUN pip install -r requirements.txt
14
15COPY . /app
16
17ENTRYPOINT [ "python" ]
18
19CMD [ "app.py" ]
20