Niansuh commited on
Commit
2ea4c2e
·
verified ·
1 Parent(s): 8cc519d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -4,11 +4,14 @@ FROM python:3.11-slim
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
- # Copy the requirements file (if you have one, otherwise just copy main.py)
8
- COPY main.py ./
9
 
10
  # Install required packages
11
- RUN pip install fastapi uvicorn aiohttp
 
 
 
12
 
13
  # Expose the port the app runs on
14
  EXPOSE 8000
 
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
+ # Copy the requirements file
8
+ COPY requirements.txt ./
9
 
10
  # Install required packages
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy the application code
14
+ COPY main.py ./
15
 
16
  # Expose the port the app runs on
17
  EXPOSE 8000