cheekeong2025's picture
Create Dockerfile
07753f2 verified
raw
history blame contribute delete
449 Bytes
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
DEBIAN_FRONTEND=noninteractive \
PORT=8501
# System deps (just in case)
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy loader
COPY loader.py .
EXPOSE 8501
CMD ["python", "loader.py"]