Skip to content

Commit

Permalink
Fixed Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
danyi1212 committed Aug 17, 2024
1 parent b51abbb commit 5e3e383
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ WORKDIR /tmp

# Setup python
RUN pip install --upgrade pip
RUN pip install poetry
RUN poetry self add poetry-plugin-export
RUN pip install poetry poetry-plugin-export

COPY ./pyproject.toml ./poetry.lock* /tmp/

ARG VARIANT=regular
RUN if [ $VARIANT = "all" ]; then \
poetry export -f requirements.txt --output requirements.txt --with full; \
poetry export -f requirements.txt --output requirements.txt --with all; \
else \
poetry export -f requirements.txt --output requirements.txt; \
fi
Expand Down

0 comments on commit 5e3e383

Please sign in to comment.