Flask in Docker

added by DotNetKicks
12/16/2021 9:29:20 PM

293 Views

This is a demo of how you can containerize a Flask application. Dockerfile FROM python:3.8.3-alpine WORKDIR /src COPY . /src RUN pip install -r requirements.txt CMD ["python","app.py"] Dockerizing a Flask Login to Docker Hub $ docker login Create a Flask container. Don't forget the included space dot at the end.


0 comments