Neon-AI commited on
Commit
c0db25e
·
verified ·
1 Parent(s): ffaae69

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -13
Dockerfile CHANGED
@@ -1,22 +1,18 @@
1
- # Use slim Python 3.11
2
- FROM python:3.11-slim
3
 
4
- # System dependencies
5
- RUN apt-get update && \
6
- apt-get install -y git build-essential wget && \
7
- apt-get clean && rm -rf /var/lib/apt/lists/*
8
-
9
- # Set working directory
10
  WORKDIR /app
11
 
12
- # Copy your app
13
- COPY . /app
 
14
 
15
- # Install Python dependencies
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
  # Expose Streamlit port
19
- EXPOSE 7860
20
 
21
  # Run Streamlit
22
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"]
 
1
+ # Base image
2
+ FROM python:3.12-slim
3
 
4
+ # Set workdir
 
 
 
 
 
5
  WORKDIR /app
6
 
7
+ # Copy files
8
+ COPY requirements.txt .
9
+ COPY app.py .
10
 
11
+ # Install dependencies
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  # Expose Streamlit port
15
+ EXPOSE 8501
16
 
17
  # Run Streamlit
18
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]