Merge pull request 'aio' (#2) from aio into main
All checks were successful
release-tag / release-image (push) Successful in 1m35s
All checks were successful
release-tag / release-image (push) Successful in 1m35s
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user