Skip to content
Open
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
7 changes: 5 additions & 2 deletions docker/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@



FROM golang:1.23-bullseye AS golang-builder
FROM golang:1.23-bookworm AS golang-builder

# Write final binaries to / so it's easy to copy them out
ENV GOBIN=/
Expand All @@ -17,7 +17,7 @@


########################################
FROM python:3.11-slim-bullseye
FROM python:3.11-slim-bookworm

LABEL org.opencontainers.image.authors="CHAOSS https://chaoss.community"
LABEL org.opencontainers.image.licenses="MIT"
Expand Down Expand Up @@ -64,6 +64,9 @@
# Assert that the lockfile (uv.lock) is up-to-date. Use `uv lock` to update it
# manually if this fails the container build.
ENV UV_LOCKED=1
# PATH lists /usr/bin first, where bookworm ships a python3.11 without
# development headers that uv would otherwise pick, failing to build psutil.
ENV UV_PYTHON=/usr/local/bin/python3.11

WORKDIR /collectoss

Expand Down Expand Up @@ -115,5 +118,5 @@

COPY --chmod=755 ./docker/backend/preflight.py /preflight.py
RUN chmod +x /preflight.py
CMD python3 /preflight.py && collectoss backend start --pidfile /tmp/main.pid

Check warning on line 121 in docker/backend/Dockerfile

View workflow job for this annotation

GitHub Actions / End-to-end test (Docker)

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/
# CMD ["collectoss", "backend", "start", "--pidfile", "/tmp/main.pid"]
Loading