pinge commited on
Commit
ffe40b4
·
verified ·
1 Parent(s): 358265f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -3
Dockerfile CHANGED
@@ -1,3 +1,19 @@
1
- mkdir -p /app/.streamlit
2
- chmod -R u+rw /app/.streamlit
3
- streamlit run streamlit_app.py
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ # Set working directory
4
+ WORKDIR /app
5
+
6
+ # Copy application files
7
+ COPY . /app
8
+
9
+ # Create and set permissions for .streamlit directory
10
+ RUN mkdir -p /app/.streamlit && chmod -R u+rw /app/.streamlit
11
+
12
+ # Install dependencies
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Expose Streamlit port
16
+ EXPOSE 8501
17
+
18
+ # Run Streamlit app
19
+ CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]