rkihacker commited on
Commit
0d21771
·
verified ·
1 Parent(s): 5b59ad4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -10,11 +10,11 @@ COPY requirements.txt .
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Copy the main application file into the container at /app
14
- COPY main.py .
15
 
16
- # Make port 8000 available to the world outside this container
17
- EXPOSE 8000
18
 
19
  # Run main.py when the container launches
20
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Copy the rest of the application's code into the container at /app
14
+ COPY . .
15
 
16
+ # Make port 80 available to the world outside this container
17
+ EXPOSE 80
18
 
19
  # Run main.py when the container launches
20
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]