Mqleet commited on
Commit
8cda39a
·
1 Parent(s): c228f50

upd docker file

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -1,14 +1,18 @@
1
  FROM python:3.10
2
 
3
- RUN useradd -m -u 1000 user
4
- USER user
5
- ENV PATH="/home/user/.local/bin:$PATH"
6
 
7
  WORKDIR /app
 
 
 
 
8
 
9
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
10
- RUN playwright install --with-deps chromium
11
 
12
 
 
 
 
 
13
  COPY --chown=user . /app
14
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10
2
 
 
 
 
3
 
4
  WORKDIR /app
5
+ COPY requirements.txt /app/
6
+
7
+ RUN pip install --no-cache-dir --upgrade pip \
8
+ && pip install --no-cache-dir -r requirements.txt
9
 
10
+ RUN playwright install chromium
 
11
 
12
 
13
+ RUN useradd -m -u 1000 user
14
+ USER user
15
+ ENV PATH="/home/user/.local/bin:$PATH"
16
+
17
  COPY --chown=user . /app
18
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]