MBG0903 commited on
Commit
ce23a73
·
verified ·
1 Parent(s): f8c2416

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -10
Dockerfile CHANGED
@@ -2,19 +2,11 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- RUN apt-get update && apt-get install -y \
6
- build-essential \
7
- curl \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
- COPY requirements.txt ./
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  COPY . .
14
 
15
  EXPOSE 7860
16
 
17
- HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
18
- CMD curl --fail http://localhost:7860/_stcore/health || exit 1
19
-
20
- CMD ["streamlit", "run", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt .
 
 
 
 
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY . .
9
 
10
  EXPOSE 7860
11
 
12
+ CMD streamlit run app.py --server.port=7860 --server.address=0.0.0.0 --server.enableCORS=false --server.enableXsrfProtection=false