Skip to content

Instantly share code, notes, and snippets.

@busser
Created February 11, 2020 17:52
Show Gist options
  • Save busser/1b6977968f571d5378b1fe559ddb64b7 to your computer and use it in GitHub Desktop.
Save busser/1b6977968f571d5378b1fe559ddb64b7 to your computer and use it in GitHub Desktop.
A simple Dockerfile
# Start from an image that already contains Python 3.8.
FROM python:3.8
# Install dependencies; be explicit about versions.
RUN pip install flask==1.1
# Copy the application's source code into the image.
COPY src/ /code
# Add useful information for operators.
EXPOSE 80/tcp
# Specify how to start the application.
ENTRYPOINT python /code/main.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment