moslem commited on
Commit
c817cb8
·
verified ·
1 Parent(s): aa0ae99

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -18
Dockerfile CHANGED
@@ -1,18 +1,9 @@
1
- FROM python:3.9
2
-
3
- WORKDIR /code
4
-
5
- COPY ./requirements.txt /code/requirements.txt
6
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
7
-
8
- RUN useradd user
9
- USER user
10
-
11
- ENV HOME=/home/user \
12
- PATH=/home/user/.local/bin:$PATH \
13
- PORT=7860
14
-
15
- WORKDIR $HOME/app
16
- COPY --chown=user . $HOME/app
17
-
18
- CMD uvicorn app:app --host 0.0.0.0 --port 7860
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /code
4
+ COPY ./requirements.txt /code/requirements.txt
5
+
6
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
7
+
8
+ # اجرای اپ
9
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]