GreyWolfEvan commited on
Commit
63d9d1b
·
verified ·
1 Parent(s): a04309d

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # Set working directory
4
+ WORKDIR /app
5
+
6
+ # Copy application code
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ COPY . /app
11
+
12
+ # Expose the port your app will run on
13
+ EXPOSE 8000
14
+
15
+ # Run the FastAPI app with uvicorn
16
+ CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]