-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
22 lines (17 loc) · 833 Bytes
/
Containerfile
File metadata and controls
22 lines (17 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Slim baker — python + pyarrow + pillow + requests + uv.
# Used for: devcontainer, lint, test, ambientcg/polyhaven/physicallybased baking.
# No C++ compilation, builds in seconds.
#
# Build: podman build -t ghcr.io/morepet/mat-vis-baker:latest .
# Push: podman push ghcr.io/morepet/mat-vis-baker:latest
FROM python:3.12-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
RUN apt-get update -qq \
&& apt-get install -y -qq --no-install-recommends git curl ca-certificates \
&& curl -fsSL https://github.com/cli/cli/releases/download/v2.74.1/gh_2.74.1_linux_amd64.tar.gz \
| tar xz --strip-components=2 -C /usr/local/bin gh_2.74.1_linux_amd64/bin/gh \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml README.md ./
COPY src/ src/
RUN uv pip install --system --no-cache .[baker]
WORKDIR /workspace