jaothan commited on
Commit
3acd11f
·
verified ·
1 Parent(s): 36b700d

Update app.Dockerfile

Browse files
Files changed (1) hide show
  1. app.Dockerfile +1 -10
app.Dockerfile CHANGED
@@ -10,21 +10,12 @@ RUN apt-get update && apt-get install -y \
10
 
11
  COPY requirements.txt .
12
 
13
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
14
 
15
- RUN useradd user
16
- USER user
17
- ENV HOME=/home/user \
18
- PATH=/home/user/.local/bin:$PATH
19
-
20
- WORKDIR $HOME/app
21
-
22
- COPY --chown=user . $HOME/app
23
  COPY api.py .
24
  COPY utils.py .
25
  COPY chains.py .
26
 
27
-
28
  HEALTHCHECK CMD curl --fail http://localhost:8504
29
 
30
  ENTRYPOINT [ "uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8504" ]
 
10
 
11
  COPY requirements.txt .
12
 
13
+ RUN pip install --upgrade -r requirements.txt
14
 
 
 
 
 
 
 
 
 
15
  COPY api.py .
16
  COPY utils.py .
17
  COPY chains.py .
18
 
 
19
  HEALTHCHECK CMD curl --fail http://localhost:8504
20
 
21
  ENTRYPOINT [ "uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8504" ]