HerbertAIHug commited on
Commit
868fcbc
·
1 Parent(s): d66b821

Upload Dockerfile.txt

Browse files
Files changed (1) hide show
  1. Dockerfile.txt +30 -0
Dockerfile.txt ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python base image for FastAPI
2
+ FROM python:3.10.11
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+
8
+ # Copy the requirements file into the container
9
+ COPY ./requirements.txt /app
10
+
11
+
12
+ # Install any needed packages specified in requirements.txt
13
+ RUN pip install -r requirements.txt
14
+
15
+ # Copy the entire src directory into the container
16
+ COPY ./src /app/src
17
+
18
+
19
+ # Expose the port that your FastAPI application will run on (default is 8000)
20
+ EXPOSE 8000
21
+
22
+ # Define the command to run your FastAPI application
23
+ CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--reload"]
24
+
25
+
26
+
27
+
28
+
29
+
30
+