tifischer commited on
Commit
db78d1f
·
verified ·
1 Parent(s): cad6845

Upload frontend_files/Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. frontend_files/Dockerfile +17 -0
frontend_files/Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # Set the working directory in the container
4
+ WORKDIR /app
5
+
6
+ # Copy the requirements file and install dependencies
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ # Copy the application code
11
+ COPY app.py .
12
+
13
+ # Expose the port that Streamlit runs on
14
+ EXPOSE 8501
15
+
16
+ # Command to run the Streamlit app
17
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]