Hana Celeste commited on
Commit
345ead9
·
verified ·
1 Parent(s): 77a7a0b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -2,14 +2,14 @@ FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
-
8
  RUN playwright install chromium
9
 
10
  COPY . .
11
-
12
- ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
13
- ENV PYTHONUNBUFFERED=1
14
-
15
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "debug"]
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN apt-get update && apt-get install -y \
6
+ fonts-liberation \
7
+ libgbm-dev \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
 
12
  RUN playwright install chromium
13
 
14
  COPY . .
15
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]