The presets move from app.js to presets.json, built into the binary and served by /api/presets. PRESETS_FILE (default /data/presets.json) replaces the list when present; it is read again each time Settings opens and the built-in list is used if it is invalid. docs/presets.md (EN/FR) explains each preset and the file format. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
22 lines
756 B
Docker
22 lines
756 B
Docker
# Image versions are pinned: update them on purpose (see "Updating" in the README).
|
|
|
|
# ---- Build ----
|
|
FROM golang:1.27.1-alpine3.24 AS build
|
|
WORKDIR /src
|
|
COPY go.mod ./
|
|
COPY *.go presets.json ./
|
|
COPY web ./web
|
|
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/logstream .
|
|
|
|
# ---- Final image (~15 MB) ----
|
|
FROM alpine:3.24.2
|
|
RUN adduser -D -H -u 10001 logstream \
|
|
&& mkdir /data && chown logstream /data
|
|
COPY --from=build /out/logstream /usr/local/bin/logstream
|
|
USER logstream
|
|
VOLUME /data
|
|
# 5514 inside the container (unprivileged port), published as 514 by docker-compose
|
|
EXPOSE 5514/udp 5514/tcp 8080/tcp
|
|
HEALTHCHECK --interval=30s --timeout=3s CMD wget -qO- http://127.0.0.1:8080/healthz || exit 1
|
|
ENTRYPOINT ["/usr/local/bin/logstream"]
|