forked from HolmesGPT/holmesgpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.operator
More file actions
29 lines (23 loc) · 1.06 KB
/
Copy pathDockerfile.operator
File metadata and controls
29 lines (23 loc) · 1.06 KB
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
FROM python:3.11-slim
WORKDIR /app
# Build-tooling version floors, kept in sync with the main Dockerfile. CVE fixes:
# wheel >= 0.46.2 CVE-2026-24049
# pip >= 26.1 CVE-2026-3219/6357, CVE-2025-8869
# setuptools >= 80.0 CVE-2026-1703; also drops the jaraco-context 5.3.0
# vendored under setuptools/_vendor (CVE-2026-23949)
ARG PIP_MIN_VERSION=26.1
ARG WHEEL_MIN_VERSION=0.46.2
ARG SETUPTOOLS_MIN_VERSION=80.0.0
COPY pyproject.toml poetry.lock* ./
# Upgrade build tooling first so poetry and the package installs it runs use the
# CVE-patched pip/setuptools/wheel.
RUN pip install --no-cache-dir -U \
"pip>=${PIP_MIN_VERSION}" "setuptools>=${SETUPTOOLS_MIN_VERSION}" "wheel>=${WHEEL_MIN_VERSION}" && \
pip install --no-cache-dir poetry && \
poetry config virtualenvs.create false && \
poetry install --no-interaction --no-ansi --no-root
COPY holmes_operator/ ./holmes_operator/
RUN useradd -m -u 10001 holmesop && \
chown -R holmesop:holmesop /app
USER 10001
ENTRYPOINT ["python", "-m", "holmes_operator.operator"]