peace4ever commited on
Commit
120c4b5
·
verified ·
1 Parent(s): 095816c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
- # # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
- # # you will also find guides on how best to write your Dockerfile
3
 
4
  FROM python:3.9
5
 
@@ -10,8 +10,11 @@ COPY ./requirements.txt /code/requirements.txt
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  COPY app.py .
 
13
 
14
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "peace4ever-peace4ever/software-project-Sentiment_Analysis.hf.space"]
 
 
15
  # Base image (replace with a suitable Python image)
16
  # FROM python:3.9
17
 
 
1
+ # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
 
4
  FROM python:3.9
5
 
 
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  COPY app.py .
13
+ EXPOSE 5000
14
 
15
+ # Command to run your Flask app
16
+ CMD ["flask", "run", "--host", "0.0.0.0"]
17
+ # CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "peace4ever-peace4ever/software-project-Sentiment_Analysis.hf.space"]
18
  # Base image (replace with a suitable Python image)
19
  # FROM python:3.9
20