Nelly-43 commited on
Commit
3a91131
·
verified ·
1 Parent(s): 6565c54

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -1
Dockerfile CHANGED
@@ -1,7 +1,19 @@
1
  FROM python:3.11-slim
 
2
  WORKDIR /app
 
 
 
 
 
 
 
3
  COPY requirements.txt .
4
  RUN pip install --no-cache-dir -r requirements.txt
5
  COPY . .
 
6
  EXPOSE 8501
7
- CMD ["streamlit", "run", "app_web.py", "--server.address=0.0.0.0"]
 
 
 
 
1
  FROM python:3.11-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 pip install --no-cache-dir -r requirements.txt
13
  COPY . .
14
+
15
  EXPOSE 8501
16
+
17
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
18
+
19
+ ENTRYPOINT ["streamlit", "run", "app_web.py", "--server.port=8501", "--server.address=0.0.0.0"]