FROM ubuntu:16.04
LABEL updated_on="2019-10-18 09:00"
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install python3 python3-setuptools python3-pip gunicorn3
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
COPY lab-4-app /flaskapp
WORKDIR /flaskapp
RUN pip3 install -r requirements.txt
EXPOSE 5000
ENTRYPOINT "./startup.sh"
docker build -t="aemooooon/flaskapp" .docker run -d --rm --name flaskapp -p 5000:5000 aemooooon/flaskapp to test.
The application should works now, but for a production deployment we need to place it behind a reverse proxy server. For this, we will need a second container. Shut down flaskapp container.Content type
Image
Digest
Size
181.4 MB
Last updated
almost 7 years ago
docker pull aemooooon/flaskapp