gaurav22iiserb commited on
Commit
4ffd28e
·
verified ·
1 Parent(s): 41eba31

MAKING SAME AS EARLIER

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -9
Dockerfile CHANGED
@@ -1,17 +1,11 @@
1
  FROM python:3.9
2
 
3
- #WORKDIR code
4
 
5
- WORKDIR ./
6
-
7
- COPY ./requirements.txt ./requirements.txt
8
 
9
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
10
 
11
  COPY . .
12
- RUN echo "export PATH=$PATH:$HOME/.local/bin && python3 -m uvicorn app.main:app --host 0.0.0.0 --port 7860" > run.sh
13
-
14
- CMD ["bash", "run.sh"]
15
-
16
 
17
- #CMD ["flask", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
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
  COPY . .
 
 
 
 
10
 
11
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]