In this video we will learn about how to create a docker container from a flask app.
we will take an existing flask app and make a docker image from it. we will create a docker file and then use alpine image and python3 and pip to create docker container.
we will use various docker command line RUN, WORKDIR, FROM ,EXPOSE, ENTRYPOINT, CMD
from alpine:latest
RUN apk add --no-cache python3-dev \
&& pip3 install --upgrade pip
WORKDIR /app
COPY . /app
RUN pip3 --no-cache-dir install -r requirements.txt
EXPOSE 5000
ENTRYPOINT ["python3"]
CMD ["app.py"]
Github Repo
=============================
https://github.com/self-tuts/python-f...
On this page of the site you can watch the video online Convert Python Flask APP to Docker Container | Docker | Python Flask with a duration of hours minute second in good quality, which was uploaded by the user CodeWithRajRanjan 25 November 2018, share the link with friends and acquaintances, this video has already been watched 116,957 times on youtube and it was liked by 1.9 thousand viewers. Enjoy your viewing!