moamen270 commited on
Commit
9468460
·
1 Parent(s): 3d01049

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -15
Dockerfile CHANGED
@@ -4,23 +4,8 @@ WORKDIR /code
4
 
5
  COPY requirements-fastapi.txt ./
6
 
7
- # Installing libGL
8
- RUN apt-get update && apt-get install -y \
9
- libgl1-mesa-dev
10
-
11
- RUN apt-get install -y poppler-utils libpoppler-cpp-dev
12
 
13
  RUN pip install --no-cache-dir --upgrade -r /code/requirements-fastapi.txt
14
 
15
- RUN useradd -m -u 1000 user
16
-
17
- USER user
18
-
19
- ENV HOME=/home/user \
20
- PATH=/home/user/.local/bin:$PATH
21
-
22
- WORKDIR $HOME/app
23
-
24
- COPY --chown=user . $HOME/app/
25
 
26
  CMD ["uvicorn", "endpoints:app", "--host", "0.0.0.0", "--port", "7860"]
 
4
 
5
  COPY requirements-fastapi.txt ./
6
 
 
 
 
 
 
7
 
8
  RUN pip install --no-cache-dir --upgrade -r /code/requirements-fastapi.txt
9
 
 
 
 
 
 
 
 
 
 
 
10
 
11
  CMD ["uvicorn", "endpoints:app", "--host", "0.0.0.0", "--port", "7860"]