-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 752 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (21 loc) · 752 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
# syntax=docker/dockerfile:1
FROM python:3.11-slim
# Avoid .pyc, make logs immediate
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
# System deps (matplotlib needs some libs even if you don't render)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install Python deps first (better layer cache)
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy source
COPY src /app/src
COPY pyproject.toml /app/pyproject.toml
COPY README.md /app/README.md
# Make package importable
ENV PYTHONPATH=/app/src
# Default: show help for CLI
CMD ["python", "-m", "bulkfolder.cli", "--help"]