Skip to content

Commit

Permalink
Run pipenv inside virtual environment
Browse files Browse the repository at this point in the history
  • Loading branch information
xavivars committed Jan 9, 2024
1 parent 0be26bc commit b68c068
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ LABEL maintainer [email protected]

# Install packaged dependencies

RUN apt-get -qq update && apt-get -qq install python3-pip pipenv
RUN apt-get -qq update && apt-get -qq install python3-full python3-pip pipenv

# Install CLD2

Expand Down Expand Up @@ -33,7 +33,10 @@ RUN apt-get -qq update && apt-get -qq install \

COPY Pipfile apertium-apy/
COPY Pipfile.lock apertium-apy/
RUN cd apertium-apy && pipenv install --deploy --system

RUN python3 -m venv /venv
ENV PATH="/venv/bin:$PATH"
RUN . /venv/bin/activate && cd apertium-apy && pipenv install --deploy --system

COPY . apertium-apy
RUN cd apertium-apy && make -j4
Expand Down

0 comments on commit b68c068

Please sign in to comment.