Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Small and medium teams
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Deep-Sixed
Cerberus
Repository navigation
Code
Issues
Pull requests
7
(7)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
Cerberus
/
Containerfile
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
23 lines (22 loc) · 1.32 KB
main
Breadcrumbs
Cerberus
/
Containerfile
Copy path
Top
File metadata and controls
Code
Blame
23 lines (22 loc) · 1.32 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM
ghcr.io/astral-sh/uv:0.11.29@sha256:eb2843a1e56fd9e30c7276ce1a52cba86e64c7b385f5e3279a0e08e02dd058fc AS uv
FROM
python:3.14.5-slim-trixie@sha256:c845af9399020c7e562969a13689e929074a10fd057acd1b1fad06a2fb068e97
COPY
--from=uv /uv /uvx /bin/
#
The image already IS a pinned interpreter: python:3.14.5-slim-trixie, by digest.
#
pyproject sets python-preference = "only-managed" so a developer checkout and CI
#
resolve the same build, but that is a validation concern and must not reach the
#
runtime image — left to apply here, uv downloads a second 34.4 MiB CPython and
#
builds .venv against it, changing both the image footprint and the interpreter
#
Cerberus actually runs on. Env overrides the pyproject setting, and persists into
#
the final image so the runtime `uv run` honours it too.
ENV
UV_PYTHON_PREFERENCE=only-system
WORKDIR
/app
COPY
pyproject.toml uv.lock README.md LICENSE NOTICE ./
COPY
src ./src
RUN
uv sync --frozen --no-dev --group build --no-install-project && uv pip install --no-deps --no-build-isolation .
COPY
config/example.yaml /etc/cerberus/config.yaml
COPY
entrypoint.sh /usr/local/bin/cerberus-entrypoint
RUN
chmod 755 /usr/local/bin/cerberus-entrypoint
ENV
CERBERUS_CONFIG=/etc/cerberus/config.yaml
EXPOSE
4101
ENTRYPOINT
[
"/usr/local/bin/cerberus-entrypoint"
]
CMD
[
"uv"
,
"run"
,
"--no-sync"
,
"cerberus"
,
"serve"
]
You can’t perform that action at this time.