SilentWraith commited on
Commit
a4da552
·
verified ·
1 Parent(s): 8c8d5f8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -12
Dockerfile CHANGED
@@ -1,21 +1,12 @@
1
- # Stage 1: Build
2
  FROM python:3.11-bookworm AS builder
3
-
4
  WORKDIR /app
5
  COPY requirements.txt .
6
- RUN pip install --prefix=/install --no-cache-dir -r requirements.txt
7
 
8
- # Stage 2: Runtime
9
  FROM mcr.microsoft.com/playwright/python:v1.42.0-jammy
10
-
11
  WORKDIR /app
12
-
13
  COPY --from=builder /install /usr/local
14
  COPY app app
15
-
16
- RUN useradd --home-dir /app --shell /bin/sh zaws && \
17
- chown -R zaws:zaws /app
18
-
19
- USER zaws
20
-
21
  CMD ["python", "app/main.py"]
 
1
+ # builder
2
  FROM python:3.11-bookworm AS builder
 
3
  WORKDIR /app
4
  COPY requirements.txt .
5
+ RUN pip install --prefix=/install -r requirements.txt
6
 
7
+ # runtime
8
  FROM mcr.microsoft.com/playwright/python:v1.42.0-jammy
 
9
  WORKDIR /app
 
10
  COPY --from=builder /install /usr/local
11
  COPY app app
 
 
 
 
 
 
12
  CMD ["python", "app/main.py"]