Last active
September 23, 2020 13:38
-
-
Save a-poor/2f7d44761563bdba0d098de5823ce4da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using a python base image | |
FROM python:3.8 | |
# Set working directory to be /app | |
WORKDIR /app | |
# Copy flask app into the container | |
COPY app.py /app | |
# Install Flask | |
RUN pip install Flask | |
# App uses port 5000 | |
EXPOSE 5000 | |
# Run this when the container starts | |
CMD exec python app.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment