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 e600788 commit 6957315
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM python:3.12 as builder

WORKDIR /app

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

COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

Expand All @@ -11,5 +14,7 @@ FROM python:3.12-alpine

WORKDIR /app

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

COPY --from=builder venv venv
COPY . .

0 comments on commit 6957315

Please sign in to comment.