Niansuh commited on
Commit
c7b1ae2
1 Parent(s): b014a82

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image
2
+ FROM python:3.11-slim
3
+
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
15
+
16
+ # Command to run the app
17
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]