Skip to content

Commit

Permalink
Use VIRTUAL_ENV variable for python binary
Browse files Browse the repository at this point in the history
  • Loading branch information
elfosardo committed Apr 21, 2022
1 parent 605d453 commit 4b248bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

ENV PYTHON=/venv/bin/python \
VIRTUAL_ENV=/venv \
ENV VIRTUAL_ENV=/venv \
PYTHONDONTWRITEBYTECODE=1 \
PATH=/bin:$PATH \
CC=gcc \
CXX=g++

RUN python3.9 -m venv /venv
RUN python3.9 -m venv "$VIRTUAL_ENV"

ENV PATH="$VIRTUAL_ENV/bin:$PATH"
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" \
PYTHON="${VIRTUAL_ENV}/bin/python"

COPY requirements-test.txt requirements-extra.txt requirements-docs.txt /tmp/

Expand Down

0 comments on commit 4b248bd

Please sign in to comment.