Areid987 commited on
Commit
309f94f
1 Parent(s): 6382b80

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -1,7 +1,8 @@
 
1
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
  # you will also find guides on how best to write your Dockerfile
3
 
4
- FROM python:3.11.10
5
 
6
  # The two following lines are requirements for the Dev Mode to be functional
7
  # Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
@@ -12,4 +13,10 @@ COPY --chown=user ./requirements.txt requirements.txt
12
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
13
 
14
  COPY --chown=user . /app
15
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
1
+
2
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
3
  # you will also find guides on how best to write your Dockerfile
4
 
5
+ FROM python:3.9
6
 
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
 
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"]