rkihacker commited on
Commit
bb3ec35
·
verified ·
1 Parent(s): b146346

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 (because we need to flood something)
8
+ COPY main.py /app/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"]