This commit is contained in:
2025-09-27 13:17:04 +02:00
parent de22d7c0f2
commit f9d12564df

View File

@@ -2,12 +2,12 @@
FROM golang:1.24-alpine AS build
WORKDIR /src
COPY . .
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/filesvc ./cmd/filesvc
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/unified ./cmd/unified
# ---------- run ----------
FROM alpine:3.22
RUN adduser -D -u 10001 filesvc && apk add --no-cache ca-certificates
USER filesvc
RUN adduser -D -u 10001 unified && apk add --no-cache ca-certificates
USER unified
WORKDIR /app
# Daten & Schlüssel landen unter /data (als Volume mounten)
@@ -17,6 +17,6 @@ ENV CONFIG_DIR=/data \
BEACON_ADDR=:9443 \
MAX_BODY_BYTES=8388608
COPY --from=build /out/filesvc /app/filesvc
COPY --from=build /out/unified /app/unified
EXPOSE 8080 8443 9443
ENTRYPOINT ["/app/filesvc"]
ENTRYPOINT ["/app/unified"]