Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
# docker - the same suite inside the pinned python:3.13-slim image, which is
# the deploy path. It is the only place that catches a broken
# version pin from requirements.txt or a new source file missing
# from the Dockerfile's explicit COPY list (see AGENTS.md).
# from the Dockerfile's explicit COPY list (see AGENTS.md). It then
# builds the runtime stage and checks that the app comes up.
#
# No apt step in the pytest job: none of the runtime wheels link against libGL
# or libglib, the Dockerfile installs those only because python:3.13-slim ships
Expand Down Expand Up @@ -63,3 +64,21 @@ jobs:
# The test stage runs pytest during the build: a red test fails the build.
- name: Build test stage
run: docker build --target test .

# The runtime stage is what compose deploys. It copies its files one by
# one, so a module missing there only showed up at deploy time.
- name: Build runtime stage
run: docker build --target runtime -t inlayer:ci .

# Imports catch a missing module; the health check that the app really
# comes up as appuser (useradd, permissions, CMD).
- name: Smoke-test the runtime image
run: |
docker run --rm inlayer:ci python -c "import app_helpers, inlayer, i18n"
docker run -d --name inlayer-smoke -p 8501:8501 inlayer:ci
for i in $(seq 1 30); do
curl -fsS http://localhost:8501/_stcore/health && exit 0
sleep 2
done
docker logs inlayer-smoke
exit 1
46 changes: 28 additions & 18 deletions AGENTS.md

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ FROM python:3.13-slim AS base

WORKDIR /app

# Systemabhängigkeiten fuer pymeshfix / manifold3d
# No compiler: every pinned requirement resolves as a cp313 wheel for x86_64
# and aarch64 (pip install --dry-run --only-binary=:all:), and build-essential
# added ~350 MB plus a toolchain to the internet-facing image. Should a
# source build ever be needed, it belongs in a builder stage of its own.
# libgl1/libglib2.0-0 stay deliberately (see AGENTS.md, CI section).
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
Expand Down
101 changes: 68 additions & 33 deletions README.md

Large diffs are not rendered by default.

Loading
Loading