Skip to content

Instantly share code, notes, and snippets.

@771991673
Created July 21, 2019 11:08
Show Gist options
  • Save 771991673/ce6a1ae75fb8f3fc4744714296b813d5 to your computer and use it in GitHub Desktop.
Save 771991673/ce6a1ae75fb8f3fc4744714296b813d5 to your computer and use it in GitHub Desktop.
Python VirtualEnv Dockerfile
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