mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-18 14:08:21 +00:00
* fix: Qualify Docker Hub Image Names in Compose Files and Dockerfiles Podman has no default registry, so a short image name such as mongo:8.0.20 or pgvector/pgvector:0.8.0-pg15-trixie fails with "short-name did not resolve to an alias" unless the host configures unqualified-search registries. Name docker.io on every third-party image in the compose files, the override example and the Dockerfiles, using docker.io/library/ for official images. Tags and digests are unchanged. scripts/images.test.mjs fails on any image a compose file or Dockerfile pulls without a registry host, and Static Checks runs it when one of those files changes. * test: Harden the image name scanner for indented comments and variable defaults Commented image lines are matched at any indentation, a variable with an empty default or more than one interpolation is not guessed, and a Dockerfile FROM with a default is judged by that default, as in compose files. * fix: Qualify the Channel Gateway and Mongo Replica Images The channel compose stack landed on dev with short names, which the image name test now rejects.
14 lines
613 B
Docker
14 lines
613 B
Docker
FROM docker.io/library/golang:1.26.10-alpine3.24@sha256:a2012b4a1d1f9f7e9f44e0d39b805a901e856b1dd80b4e6ee4338db547050308 AS builder
|
|
ENV GOTOOLCHAIN=local
|
|
WORKDIR /src
|
|
COPY otel/langfuse-fanout/go.mod otel/langfuse-fanout/go.sum* ./
|
|
RUN go mod download
|
|
COPY otel/langfuse-fanout/ ./
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/langfuse-fanout ./cmd/langfuse-fanout
|
|
|
|
FROM docker.io/library/alpine:3.22
|
|
RUN addgroup -S app && adduser -S app -G app
|
|
COPY --from=builder /out/langfuse-fanout /usr/local/bin/langfuse-fanout
|
|
USER app
|
|
EXPOSE 4318
|
|
ENTRYPOINT ["/usr/local/bin/langfuse-fanout"]
|