Omarelrayes commited on
Commit
a8ad77b
·
verified ·
1 Parent(s): 7705102

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -8
Dockerfile CHANGED
@@ -1,19 +1,16 @@
1
  FROM python:3.10
2
 
3
-
4
  WORKDIR /app
5
 
6
-
7
  COPY requirements.txt .
8
-
9
-
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
-
13
  COPY . .
14
 
15
-
16
  EXPOSE 7860
17
 
18
-
19
- CMD uvicorn app.main:app --host 0.0.0.0 --port 7860
 
1
  FROM python:3.10
2
 
 
3
  WORKDIR /app
4
 
5
+ # install dependencies
6
  COPY requirements.txt .
 
 
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # copy project files
10
  COPY . .
11
 
12
+ # expose port (Hugging Face uses 7860)
13
  EXPOSE 7860
14
 
15
+ # run app
16
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]