Spaces:
Configuration error

yonkasoft commited on
Commit
df53e6f
·
verified ·
1 Parent(s): 1373351

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -2,16 +2,16 @@
2
  # you will also find guides on how best to write your Dockerfile
3
 
4
  FROM python:3.9
5
-
6
  # Ortam değişkenlerini ayarlama
7
  ENV YOUR_SECRET_KEY_NAME=huggingface_key
8
  # The two following lines are requirements for the Dev Mode to be functional
9
  # Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
10
- RUN useradd -m -u 1000 user
11
  WORKDIR /app
12
 
13
- COPY --chown=user ./requirements.txt requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
16
- COPY --chown=user . /app
17
- CMD ["uvicorn", "main:app","app.py", "--host", "0.0.0.0", "--port", "7860"]
 
2
  # you will also find guides on how best to write your Dockerfile
3
 
4
  FROM python:3.9
5
+ WORKDIR /app
6
  # Ortam değişkenlerini ayarlama
7
  ENV YOUR_SECRET_KEY_NAME=huggingface_key
8
  # The two following lines are requirements for the Dev Mode to be functional
9
  # Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
10
+
11
  WORKDIR /app
12
 
13
+ COPY ./requirements.txt requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
16
+ COPY . /app
17
+ CMD ["python", "app.py"]