Skip to content

Commit

Permalink
Optimise Dockerfile for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonQ committed Aug 20, 2024
1 parent 6b0ee45 commit 95e7836
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ ENV POETRY_VIRTUALENVS_CREATE=false \
RUN mkdir -p "/opt/$APP_NAME"
WORKDIR "/opt/$APP_NAME"

RUN python -m pip install --no-cache-dir --upgrade pip poetry wheel

COPY poetry.lock pyproject.toml ./
COPY app app

RUN python -m pip install --no-cache-dir --upgrade pip poetry wheel && \
poetry install --only main --no-root
RUN poetry install --only main --no-root

######### TEST Image #########
FROM base AS test
Expand Down

0 comments on commit 95e7836

Please sign in to comment.