LoremPizza commited on
Commit
1555dd7
·
verified ·
1 Parent(s): df2483b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a specific version for the base image
2
+ FROM python:3.11-slim
3
+
4
+ # Set a working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Install dependencies
8
+ RUN pip install requests fastapi uvicorn
9
+ # Copy application files to the container at /app
10
+ COPY . /app
11
+
12
+ # Expose the desired port
13
+ EXPOSE 8080
14
+
15
+ # Command to run the script
16
+ CMD ["python", "run.py"]