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...
In questa pagina del sito puoi guardare il video online Convert Python Flask APP to Docker Container | Docker | Python Flask della durata di ore minuti seconda in buona qualità , che l'utente ha caricato CodeWithRajRanjan 25 novembre 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 116,957 volte e gli è piaciuto 1.9 mille spettatori. Buona visione!