rasmodev commited on
Commit
217e935
·
1 Parent(s): 2542575

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image as a parent image
2
+ FROM python:3.11.3-slim
3
+
4
+ # Set the working directory within the container
5
+ WORKDIR /app
6
+
7
+ # Copy your FastAPI application code into the container
8
+ COPY ./app.py /app
9
+
10
+ # Copy the requirements.txt file into the container
11
+ COPY ./requirements.txt /app
12
+
13
+ # Install the Python dependencies
14
+ RUN pip install -r /app/requirements.txt
15
+
16
+ # Expose port 7860 for the FastAPI application
17
+ EXPOSE 7860
18
+
19
+ # Command to start the Streamlit app
20
+ CMD ["streamlit", "run", "--server.port", "7860", "app.py"]