cuemacro-findatapy
SUCCESS
29m 19s
History Source
SummaryIterations2Transcript22Dockerfile
Dockerfile35 lines · 912 chars
FROM python:3.11.15-bookworm

# Install system dependencies required for building Python packages
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
      build-essential \
      gcc \
      python3-dev \
      libffi-dev \
      libssl-dev \
      zlib1g-dev \
      libbz2-dev \
      libreadline-dev \
      libsqlite3-dev \
      wget \
      curl \
      ca-certificates && \
    rm -rf /var/lib/apt/lists/*

# Set work directory
WORKDIR /app

# Copy source code
COPY . /app

# Install Python dependencies (editable install to build from source)
RUN python -m pip install --upgrade pip && \
    pip install --no-cache-dir -e .

# Copy healthcheck script for smoke test
COPY healthcheck.py /app/healthcheck.py

# Smoke test entrypoint: run a small Python script to verify package imports without complex shell quoting
CMD ["python","/app/healthcheck.py"]