SD_Hackathon / Dockerfile
com3dian's picture
Update Dockerfile
54a351b verified
raw
history blame
721 Bytes
FROM python:3.9-slim
WORKDIR /app
# Set timezone
ENV TZ=Europe/Paris
RUN apt-get update && apt-get install -y tzdata && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy source code
COPY requirements.txt ./
COPY src/ ./src/
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose Dash default port
EXPOSE 8050
# Healthcheck (adjust endpoint as needed for your Dash app)
HEALTHCHECK CMD curl --fail http://localhost:8050 || exit 1
# Start the Dash app
CMD ["python", "src/streamlit_app.py"]