plan291037 commited on
Commit
aed647b
·
verified ·
1 Parent(s): a2f3f39

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -16
Dockerfile CHANGED
@@ -1,16 +1,21 @@
1
- FROM python:3.11-slim
2
-
3
- RUN apt-get update && \
4
- apt-get install -y --no-install-recommends \
5
- chromium chromium-driver fonts-liberation libgbm1 libnss3 libgconf-2-4 && \
6
- rm -rf /var/lib/apt/lists/*
7
-
8
- ENV CHROME_BINARY=/usr/bin/chromium
9
- ENV CHROME_EXTRA_ARGS="--no-sandbox --disable-dev-shm-usage --disable-gpu --window-size=1920,1080 --headless=new"
10
-
11
- COPY requirements.txt .
12
- RUN pip install --no-cache-dir -r requirements.txt
13
-
14
- COPY . /app
15
- WORKDIR /app
16
- CMD ["gunicorn", "-k", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8080", "app.main:app"]
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ RUN apt-get update && \
4
+ apt-get install -y --no-install-recommends \
5
+ chromium chromium-driver fonts-liberation libgbm1 libnss3 libgconf-2-4 && \
6
+ rm -rf /var/lib/apt/lists/*
7
+
8
+ ENV CHROME_BINARY=/usr/bin/chromium
9
+ ENV CHROME_EXTRA_ARGS="--no-sandbox --disable-dev-shm-usage --disable-gpu --window-size=1920,1080 --headless=new"
10
+
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ COPY . /app
15
+ WORKDIR /app
16
+ CMD ["gunicorn",
17
+ "-w","1",
18
+ "--threads","1",
19
+ "-k","uvicorn.workers.UvicornWorker",
20
+ "--bind","0.0.0.0:8080",
21
+ "app.main:app"]