-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 1.07 KB
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Reproducible environment for ShortKIT-ML paper benchmarks
# Build: docker build -t shortcut-detect .
# Run: docker run --rm -v $(pwd)/output:/app/output shortcut-detect smoke
FROM python:3.10-slim
LABEL maintainer="ShortKIT-ML Team"
LABEL description="Reproducible environment for ShortKIT-ML paper benchmarks"
# System dependencies required by weasyprint / PDF export and general build tools
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libpango1.0-dev \
libgdk-pixbuf2.0-dev \
libffi-dev \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy dependency manifest first for layer caching
COPY pyproject.toml ./
# Install the package in editable mode (with all extras for reproducibility)
COPY . .
RUN pip install --no-cache-dir -e ".[dev]"
# Make the reproduce script executable
RUN chmod +x scripts/reproduce_paper.sh
# Default entrypoint runs the reproducibility script.
# Pass a profile as the CMD argument: smoke | default | full
ENTRYPOINT ["scripts/reproduce_paper.sh"]
CMD ["default"]