Spaces:
Runtime error
Runtime error
Sajil Awale commited on
Commit ·
73c6211
1
Parent(s): 378af00
updated dockerfile
Browse files- Dockerfile +9 -1
Dockerfile
CHANGED
|
@@ -5,6 +5,9 @@ WORKDIR /app
|
|
| 5 |
|
| 6 |
# Install system dependencies
|
| 7 |
RUN apt-get update && apt-get install -y \
|
|
|
|
|
|
|
|
|
|
| 8 |
texlive-latex-base \
|
| 9 |
texlive-latex-extra \
|
| 10 |
texlive-fonts-recommended \
|
|
@@ -13,6 +16,9 @@ RUN apt-get update && apt-get install -y \
|
|
| 13 |
build-essential \
|
| 14 |
&& rm -rf /var/lib/apt/lists/*
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
# Copy requirements
|
| 17 |
COPY requirements.txt .
|
| 18 |
|
|
@@ -25,10 +31,12 @@ COPY . .
|
|
| 25 |
# Expose Streamlit port
|
| 26 |
EXPOSE 8501
|
| 27 |
|
|
|
|
|
|
|
| 28 |
# Set environment variables
|
| 29 |
ENV PYTHONUNBUFFERED=1
|
| 30 |
ENV STREAMLIT_SERVER_PORT=8501
|
| 31 |
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
|
| 32 |
|
| 33 |
# Run the app
|
| 34 |
-
CMD ["streamlit", "run", "app.py"]
|
|
|
|
| 5 |
|
| 6 |
# Install system dependencies
|
| 7 |
RUN apt-get update && apt-get install -y \
|
| 8 |
+
build-essential \
|
| 9 |
+
curl \
|
| 10 |
+
git \
|
| 11 |
texlive-latex-base \
|
| 12 |
texlive-latex-extra \
|
| 13 |
texlive-fonts-recommended \
|
|
|
|
| 16 |
build-essential \
|
| 17 |
&& rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
+
|
| 20 |
+
ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
|
| 21 |
+
|
| 22 |
# Copy requirements
|
| 23 |
COPY requirements.txt .
|
| 24 |
|
|
|
|
| 31 |
# Expose Streamlit port
|
| 32 |
EXPOSE 8501
|
| 33 |
|
| 34 |
+
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 35 |
+
|
| 36 |
# Set environment variables
|
| 37 |
ENV PYTHONUNBUFFERED=1
|
| 38 |
ENV STREAMLIT_SERVER_PORT=8501
|
| 39 |
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
|
| 40 |
|
| 41 |
# Run the app
|
| 42 |
+
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|