20 lines
440 B
Docker
20 lines
440 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip3 install --no-cache-dir --upgrade pip && \
|
|
pip3 install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 8040
|
|
|
|
HEALTHCHECK CMD curl --fail http://localhost:8040/_stcore/health || exit 1
|
|
|
|
CMD ["streamlit", "run", "main.py", "--server.port=8040", "--server.address=0.0.0.0"] |