Created
February 11, 2020 17:52
-
-
Save busser/1b6977968f571d5378b1fe559ddb64b7 to your computer and use it in GitHub Desktop.
A simple Dockerfile
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
# 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