ex510 commited on
Commit
b461a54
·
verified ·
1 Parent(s): c9ff340

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python 3.11 image
2
+ FROM python:3.11
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Install FastAPI and Uvicorn
8
+ RUN pip install fastapi uvicorn
9
+
10
+ # Copy the current directory contents into the container at /app
11
+ COPY . /app
12
+
13
+ # Expose the port for the application
14
+ EXPOSE 8080
15
+
16
+ # Command to run the FastAPI app
17
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]