Created
January 3, 2021 10:58
-
-
Save anna-anisienia/89cd0ad1547328f303210a3344049a60 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# set a base image: https://hub.docker.com/_/python?tab=tags&page=1&ordering=last_updated | |
FROM python:3.8 | |
# optional: ensure that pip is up to date | |
RUN pip install --upgrade pip | |
# first we COPY only requirements.txt to ensure that later builds | |
# with changes to your src code will be faster due to caching of this layer | |
COPY requirements.txt . | |
RUN pip install -r requirements.txt | |
# copy all your custom modules and files from the src directory | |
COPY src/ . | |
# specify the script that will be executed on container start | |
CMD [ "python", "mysuperdatasciencemodel.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment