init
All checks were successful
release-tag / release-image (push) Successful in 1m32s

This commit is contained in:
2025-09-24 11:50:07 +02:00
parent e2b164640c
commit b5ad30cfbd
8 changed files with 983 additions and 0 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
# ---------- build ----------
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 ----------
FROM alpine:3.22
RUN adduser -D -u 10001 filesvc && apk add --no-cache ca-certificates
USER filesvc
WORKDIR /app
# Daten & Schlüssel landen unter /data (als Volume mounten)
ENV CONFIG_DIR=/data \
ADDR=:8080 \
MESH_ADDR=:8443 \
BEACON_ADDR=:9443 \
MAX_BODY_BYTES=8388608
COPY --from=build /out/filesvc /app/filesvc
EXPOSE 8080 8443 9443
ENTRYPOINT ["/app/filesvc"]