bugfix: Kommentar führ zu Problemen im Image
All checks were successful
release-tag / release-image (push) Successful in 1m33s

This commit is contained in:
2025-08-29 23:56:02 +02:00
parent 176fe99ac0
commit 8123b8c265
2 changed files with 2 additions and 17 deletions

View File

@@ -1,24 +1,17 @@
# ---------- Build stage ----------
FROM golang:1.24-alpine AS build
WORKDIR /src
# optional, aber nett für reproduzierbare Builds:
ENV CGO_ENABLED=0
# Falls du private CAs brauchst, sonst weglassen:
RUN apk add --no-cache ca-certificates
COPY go.* ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /out/mirrorweb
# ---------- Runtime stage ----------
FROM alpine:3.22
# Für TLS (falls du Traefik mal nicht davor hast) und saubere Zeit:
RUN apk add --no-cache ca-certificates tzdata && update-ca-certificates
# Non-root User
RUN addgroup -S app && adduser -S -G app app
USER app
WORKDIR /
VOLUME ["/data"] # hier hängt dein Mirror-Volume read-only
VOLUME ["/data"]
EXPOSE 8080
COPY --from=build /out/mirrorweb /mirrorweb
ENTRYPOINT ["/mirrorweb"]