dragg2 commited on
Commit
b55edf5
·
verified ·
1 Parent(s): 274d17a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
- FROM python:3.11-slim
2
 
3
- WORKDIR /app
4
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir --root-user-action=ignore -r requirements.txt
@@ -8,6 +8,9 @@ RUN playwright install --with-deps chromium
8
 
9
  COPY . .
10
 
 
 
 
11
  EXPOSE 7860
12
 
13
- CMD ["python", "main.py"]
 
1
+ FROM python:3.11-slim-bookworm
2
 
3
+ WORKDIR /app
4
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir --root-user-action=ignore -r requirements.txt
 
8
 
9
  COPY . .
10
 
11
+ ENV PYTHONUNBUFFERED=1
12
+ ENV SERVER_PORT=7860
13
+
14
  EXPOSE 7860
15
 
16
+ CMD ["python", "main.py"]