Spaces:
Sleeping
Sleeping
File size: 847 Bytes
7e4d4f7 895004d 1a11972 7e4d4f7 1a11972 7e4d4f7 8300f23 7e4d4f7 8300f23 7e4d4f7 8300f23 7e4d4f7 8300f23 7e4d4f7 8300f23 7e4d4f7 b09b9d7 d785ac6 7e4d4f7 b09b9d7 7e4d4f7 8300f23 7e4d4f7 895004d 1a11972 7e4d4f7 8300f23 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# ---- Base image
FROM python:3.11-slim
# ---- Set working directory
WORKDIR /app
# ---- Avoid warnings and set env for matplotlib
ENV PYTHONUNBUFFERED=1
ENV MPLCONFIGDIR=/tmp/.matplotlib
ENV DEBIAN_FRONTEND=noninteractive
# ---- System dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
wget \
git \
curl \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# ---- Copy requirements
COPY requirements.txt .
# ---- Install Python dependencies
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# ---- Copy app files
COPY . .
# ---- Expose Streamlit default port
EXPOSE 8501
# ---- Command to run Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableCORS=false"]
|