Mqleet commited on
Commit
0aba08a
·
1 Parent(s): 422817b

upd docker file

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -1,18 +1,19 @@
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"]
 
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
 
8
  WORKDIR /app
9
+ COPY --chown=user requirements.txt /app/
10
 
11
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
12
 
 
13
 
14
+ RUN playwright install chromium
15
 
 
 
 
16
 
17
  COPY --chown=user . /app
18
+
19
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]