mbecchis commited on
Commit
30dc031
·
verified ·
1 Parent(s): 0016ce1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -12
Dockerfile CHANGED
@@ -2,19 +2,15 @@ FROM python:3.13.5-slim
2
 
3
  WORKDIR /app
4
 
5
- RUN apt-get update && apt-get install -y \
6
- build-essential \
7
- curl \
8
- git \
9
- && rm -rf /var/lib/apt/lists/*
10
-
11
  COPY requirements.txt .
12
- RUN pip3 install --no-cache-dir -r requirements.txt
13
-
14
- COPY . /app
15
 
16
- EXPOSE 7860
 
17
 
18
- HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1
 
19
 
20
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Copy requirements and install dependencies
 
 
 
 
 
6
  COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
8
 
9
+ # Copy application files
10
+ COPY . .
11
 
12
+ # Expose Streamlit port
13
+ EXPOSE 8501
14
 
15
+ # Run Streamlit
16
+ CMD ["streamlit", "run", "app1.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.headless=true"]