myyim commited on
Commit
cb8fb18
·
verified ·
1 Parent(s): bfb6af2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -7,16 +7,15 @@ FROM python:3.9
7
  # The two following lines are requirements for the Dev Mode to be functional
8
  # Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
9
  RUN useradd -m -u 1000 user
10
- WORKDIR /app
11
 
12
- COPY --chown=user ./requirements.txt requirements.txt
13
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
 
15
  COPY --chown=user . /app
 
16
 
17
- USER user
18
-
19
- ENV HOME=/home/user \
20
- PATH=/home/user/.local/bin:$PATH
21
 
22
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
7
  # The two following lines are requirements for the Dev Mode to be functional
8
  # Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
9
  RUN useradd -m -u 1000 user
10
+ USER user
11
 
12
+ WORKDIR /app
 
13
 
14
+ # COPY --chown=user ./requirements.txt requirements.txt
15
  COPY --chown=user . /app
16
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
17
 
18
+ # ENV HOME=/home/user \
19
+ # PATH=/home/user/.local/bin:$PATH
 
 
20
 
21
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]