Skip to content

Commit

Permalink
Fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrimaz committed Jan 21, 2024
1 parent 6c87e32 commit 86a484f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
FROM python:3.11-alpine
FROM python:3.11-alpine as builder

RUN adduser -D nonroot
USER nonroot

WORKDIR /app

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

FROM python:3.11-alpine

COPY --from=builder /app /app

USER nonroot
WORKDIR /app

COPY . .

Expand Down

0 comments on commit 86a484f

Please sign in to comment.