fix
All checks were successful
release-tag / release-image (push) Successful in 1m27s

This commit is contained in:
2025-08-29 22:48:02 +02:00
parent b8fcca4d93
commit e86bd571ee

View File

@@ -1,16 +1,17 @@
# ---------- Build stage ---------- # ---------- Build stage ----------
FROM golang:1.22-alpine AS build FROM golang:1.24-alpine AS build
WORKDIR /src WORKDIR /src
# optional, aber nett für reproduzierbare Builds: # optional, aber nett für reproduzierbare Builds:
ENV CGO_ENABLED=0 ENV CGO_ENABLED=0
# Falls du private CAs brauchst, sonst weglassen: # Falls du private CAs brauchst, sonst weglassen:
RUN apk add --no-cache ca-certificates RUN apk add --no-cache ca-certificates
COPY go.mod ./ COPY go.* ./
COPY main.go ./ RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /out/mirrorweb RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /out/mirrorweb
# ---------- Runtime stage ---------- # ---------- Runtime stage ----------
FROM alpine:3.20 FROM alpine:3.22
# Für TLS (falls du Traefik mal nicht davor hast) und saubere Zeit: # Für TLS (falls du Traefik mal nicht davor hast) und saubere Zeit:
RUN apk add --no-cache ca-certificates tzdata && update-ca-certificates RUN apk add --no-cache ca-certificates tzdata && update-ca-certificates
# Non-root User # Non-root User