Zenkad commited on
Commit
3aad2d7
·
verified ·
1 Parent(s): a1409a9

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +1 -1
dockerfile CHANGED
@@ -1,6 +1,5 @@
1
  FROM python:3.9
2
 
3
- # Hugging Face'in sevdiği kullanıcı ayarı (Çökmemesi için şart)
4
  RUN useradd -m -u 1000 user
5
  USER user
6
  ENV HOME=/home/user \
@@ -11,6 +10,7 @@ WORKDIR $HOME/app
11
  COPY --chown=user requirements.txt requirements.txt
12
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
13
 
 
14
  COPY --chown=user . .
15
 
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9
2
 
 
3
  RUN useradd -m -u 1000 user
4
  USER user
5
  ENV HOME=/home/user \
 
10
  COPY --chown=user requirements.txt requirements.txt
11
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
 
13
+ # Aşağıdaki satırda sona nokta koymayı unutma!
14
  COPY --chown=user . .
15
 
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]