polarbearblue commited on
Commit
8bab13e
·
verified ·
1 Parent(s): 0a0e2be

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -10
Dockerfile CHANGED
@@ -1,22 +1,17 @@
1
  FROM python:3.10-slim
2
 
3
- Set work directory
4
-
5
  WORKDIR /app
6
 
7
- Install dependencies
8
-
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
- Copy source code
13
-
14
  COPY . .
15
 
16
- Expose port
17
-
18
  EXPOSE 7860
19
 
20
- Start FastAPI server
21
-
22
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
 
3
+ # Set work directory
 
4
  WORKDIR /app
5
 
6
+ # Install dependencies
 
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
+ # Copy source code
 
11
  COPY . .
12
 
13
+ # Expose port
 
14
  EXPOSE 7860
15
 
16
+ # Start FastAPI server
 
17
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]