FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1
# Minimal system dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy source code
COPY . /app
# Ensure a placeholder Python entrypoint if none exists (for smoke tests)
RUN if [ ! -f /app/main.py ]; then printf 'print("DeepSeek-V2 container placeholder")\n' > /app/main.py; fi
# Install Python dependencies if present
RUN if [ -f requirements.txt ]; then python -m pip install --no-cache-dir -r requirements.txt; fi
# Default command: drop into a shell for inspection or to run tests
CMD ["bash"]