Skip to content

Instantly share code, notes, and snippets.

@POMXARK
Forked from 771991673/Dockerfile
Created June 30, 2023 19:08
Show Gist options
  • Save POMXARK/4d9fd76f407c8deee29cfaaa19f75f47 to your computer and use it in GitHub Desktop.
Save POMXARK/4d9fd76f407c8deee29cfaaa19f75f47 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