Spaces:
Sleeping
Sleeping
Alphin Jain commited on
Commit ·
ea0180b
1
Parent(s): d4bf93c
Updated modules
Browse files- Dockerfile +12 -5
Dockerfile
CHANGED
|
@@ -1,4 +1,11 @@
|
|
| 1 |
-
FROM python:3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 15 |
|
| 16 |
COPY . .
|
| 17 |
|
| 18 |
-
EXPOSE
|
| 19 |
-
|
| 20 |
-
|
|
|
|
| 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"]
|