Skip to content

Instantly share code, notes, and snippets.

@a-poor
Last active September 23, 2020 13:38
Show Gist options
  • Save a-poor/2f7d44761563bdba0d098de5823ce4da to your computer and use it in GitHub Desktop.
Save a-poor/2f7d44761563bdba0d098de5823ce4da to your computer and use it in GitHub Desktop.
# 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