-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 847 Bytes
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 847 Bytes
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
# Dockerfile for Barnacle OCR Pipeline
# Designed for: Docker build → DockerHub → Singularity on Tufts HPC
FROM python:3.12-slim
# Install system dependencies for Kraken OCR
RUN apt-get update && apt-get install -y \
git \
libvips-dev \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy project files
COPY pyproject.toml pdm.lock README.md ./
COPY src/ ./src/
# Install the package directly with pip (uses pyproject.toml)
# This places 'barnacle' in /usr/local/bin for direct execution
RUN pip install --no-cache-dir .
# Create mount points for runtime volumes
# These will be bind-mounted from HPC storage at runtime
RUN mkdir -p /models /cache /output
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Entry point: barnacle is directly available in PATH
ENTRYPOINT ["barnacle"]
CMD ["--help"]