Created
July 21, 2019 11:08
-
-
Save 771991673/ce6a1ae75fb8f3fc4744714296b813d5 to your computer and use it in GitHub Desktop.
Python VirtualEnv Dockerfile
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
FROM python:3.7.4-buster | |
ADD . /app | |
WORKDIR /app | |
RUN python -m venv venv | |
RUN venv/bin/pip install --upgrade pip | |
RUN venv/bin/pip install -r requirements.txt | |
CMD . venv/bin/activate && exec python my_script.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment