mgbam commited on
Commit
4484e38
·
verified ·
1 Parent(s): cc1d6cf

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python base image
2
+ FROM python:3.10-slim
3
+
4
+ # Install system dependencies
5
+ RUN apt-get update && \
6
+ apt-get install -y build-essential libglib2.0-0 libsm6 libxrender1 libxext6 && \
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ # Set workdir
10
+ WORKDIR /app
11
+
12
+ # Copy your code
13
+ COPY . /app
14
+
15
+ # Install Python dependencies
16
+ RUN pip install --no-cache-dir --upgrade pip
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Expose the port Streamlit uses
20
+ EXPOSE 7860
21
+
22
+ # Command to run your app
23
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]