Skip to content

Instantly share code, notes, and snippets.

@alidevhere
Last active November 13, 2022 15:23
Show Gist options
  • Save alidevhere/ef24b3b577fe11be599d592507c71a71 to your computer and use it in GitHub Desktop.
Save alidevhere/ef24b3b577fe11be599d592507c71a71 to your computer and use it in GitHub Desktop.
we can't activate venv, we are doing what source activate will do
#FROM python:3.9-slim-bullseye
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Install dependencies:
#COPY requirements.txt .
#RUN pip install -r requirements.txt
# Run the application:
#COPY myapp.py .
#CMD ["python", "myapp.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment