hackathon_code4change / Dockerfile
RoyAalekh's picture
containerization with docker and updated the readmes
7bf82f0
raw
history blame
648 Bytes
# syntax=docker/dockerfile:1
FROM python:3.11-slim
# Runtime system dependency for scikit-learn/scipy wheels
RUN apt-get update \
&& apt-get install -y --no-install-recommends libgomp1 \
&& rm -rf /var/lib/apt/lists/*
# Python env hygiene
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PYTHONPATH=/app
WORKDIR /app
# Copy repo and install package (declared in pyproject.toml)
COPY . .
RUN pip install --upgrade pip setuptools wheel \
&& pip install .
# Streamlit default port
EXPOSE 8501
# Safe default: show CLI help
CMD ["court-scheduler", "--help"]