Alphin Jain commited on
Commit
ea0180b
·
1 Parent(s): d4bf93c

Updated modules

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -5
Dockerfile CHANGED
@@ -1,4 +1,11 @@
1
- FROM python:3.10-slim
 
 
 
 
 
 
 
2
 
3
  RUN apt-get update && apt-get install -y \
4
  tesseract-ocr \
@@ -11,10 +18,10 @@ RUN apt-get update && apt-get install -y \
11
  WORKDIR /app
12
 
13
  COPY requirements.txt .
14
- RUN pip install -r requirements.txt
15
 
16
  COPY . .
17
 
18
- EXPOSE 8502
19
-
20
- CMD ["streamlit", "run", "app.py", "--server.port=8502", "--server.address=0.0.0.0"]
 
1
+ FROM python:3.9-slim
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ build-essential \
5
+ curl \
6
+ software-properties-common \
7
+ git \
8
+ && rm -rf /var/lib/apt/lists/*
9
 
10
  RUN apt-get update && apt-get install -y \
11
  tesseract-ocr \
 
18
  WORKDIR /app
19
 
20
  COPY requirements.txt .
21
+ RUN pip3 install -r requirements.txt
22
 
23
  COPY . .
24
 
25
+ EXPOSE 8501
26
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
27
+ ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]