init
Some checks failed
release-tag / release-image (push) Failing after 1m28s

This commit is contained in:
2025-09-24 10:32:22 +02:00
parent b851b57e28
commit dc3abf661f
17 changed files with 1008 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/dweb ./cmd/dweb
# ---------- run ----------
FROM alpine:3.22
RUN adduser -D -u 10001 dweb && apk add --no-cache ca-certificates
USER dweb
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/dweb /app/dweb
EXPOSE 8080 8443 9443
ENTRYPOINT ["/app/dweb"]