Queensly commited on
Commit
4e3d66d
2 Parent(s): ee259c3 888a3df

Added file

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -31
Dockerfile CHANGED
@@ -1,33 +1,3 @@
1
- # FROM python:3.9
2
-
3
- # WORKDIR /code
4
-
5
- # COPY ./requirements.txt /code/requirements.txt
6
-
7
- # RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
-
9
- # RUN useradd -m -u 1000 user
10
- # USER user
11
- # ENV HOME=/home/user \
12
- # PATH=/home/user/.local/bin:$PATH
13
-
14
- # WORKDIR $HOME/app
15
-
16
- # COPY --chown=user . $HOME/app
17
-
18
- # CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
19
-
20
- # FROM python:3.9
21
-
22
- # WORKDIR /code
23
-
24
- # COPY ./requirements.txt /code/requirements.txt
25
-
26
- # RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
27
-
28
- # COPY . .
29
-
30
- # CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
31
 
32
  FROM python:3.9
33
 
@@ -48,4 +18,4 @@ WORKDIR $HOME/app
48
 
49
  COPY --chown=user . $HOME/app
50
 
51
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
2
  FROM python:3.9
3
 
 
18
 
19
  COPY --chown=user . $HOME/app
20
 
21
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]