Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Mar 13, 2024
1 parent 6957315 commit 81d8e56
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 @@ -3,8 +3,8 @@ FROM python:3.12 as builder

WORKDIR /app

RUN python -m venv venv
ENV PATH="/venv/bin:$PATH"
RUN python -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
Expand All @@ -14,7 +14,7 @@ FROM python:3.12-alpine

WORKDIR /app

ENV PATH="/venv/bin:$PATH"
COPY --from=builder /opt/venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

COPY --from=builder venv venv
COPY . .

0 comments on commit 81d8e56

Please sign in to comment.