Mihaiii commited on
Commit
31b042c
·
verified ·
1 Parent(s): 0a9e54c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.10.12
2
 
3
- RUN apt-get update && apt-get install -y
4
  RUN chmod 777 .
5
  RUN git clone https://github.com/Mihaiii/TimeStampBuddy.git
6
  RUN cd TimeStampBuddy && pip install -r requirements.txt
@@ -9,4 +9,4 @@ COPY app.py ./TimeStampBuddy
9
 
10
  RUN chmod +x ./TimeStampBuddy/app.py
11
 
12
- CMD ["python3", "/TimeStampBuddy/app.py"]
 
1
  FROM python:3.10.12
2
 
3
+ RUN apt-get update && apt-get install -y && pip install fastapi && pip install uvicorn[standard]
4
  RUN chmod 777 .
5
  RUN git clone https://github.com/Mihaiii/TimeStampBuddy.git
6
  RUN cd TimeStampBuddy && pip install -r requirements.txt
 
9
 
10
  RUN chmod +x ./TimeStampBuddy/app.py
11
 
12
+ CMD ["uvicorn", "TimeStampBuddy:app", "--host", "0.0.0.0", "--port", "7860"]