Severian commited on
Commit
2164287
·
verified ·
1 Parent(s): 0c01f90

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -47,6 +47,12 @@ COPY --from=api --chown=user:user /app/api /app/api/
47
  # Set up API dependencies
48
  WORKDIR /app/api
49
  COPY --from=api --chown=user /app/api/pyproject.toml /app/api/poetry.lock /app/api/poetry.toml ./
 
 
 
 
 
 
50
  RUN pip install --no-cache-dir "poetry==${POETRY_VERSION}" && \
51
  poetry install --no-root --no-dev
52
 
 
47
  # Set up API dependencies
48
  WORKDIR /app/api
49
  COPY --from=api --chown=user /app/api/pyproject.toml /app/api/poetry.lock /app/api/poetry.toml ./
50
+
51
+ # Set up Python virtual environment
52
+ ENV VIRTUAL_ENV=/app/api/.venv
53
+ COPY --from=api ${VIRTUAL_ENV} ${VIRTUAL_ENV}
54
+ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
55
+
56
  RUN pip install --no-cache-dir "poetry==${POETRY_VERSION}" && \
57
  poetry install --no-root --no-dev
58