rkihacker commited on
Commit
1e0cd06
·
verified ·
1 Parent(s): bc849ab

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -8
Dockerfile CHANGED
@@ -1,14 +1,12 @@
1
- # Use Python 3.9 (because why not?)
2
  FROM python:3.9-slim
3
 
4
- # Install dependencies (because we need socket magic)
5
- RUN pip install fastapi uvicorn
6
 
7
- # Copy the code
8
- COPY main.py
9
 
10
- # Expose port 8000 (because FastAPI defaults to it)
11
- EXPOSE 8000
12
 
13
- # Run the API (because we need to start the chaos)
14
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
 
1
  FROM python:3.9-slim
2
 
3
+ WORKDIR /app
 
4
 
5
+ # Copy ALL files (because Docker is stupid)
6
+ COPY . .
7
 
8
+ # Install dependencies
9
+ RUN pip install fastapi uvicorn
10
 
11
+ # Run the API
12
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]