# michael Docker image ARG ALPINE_VERSION=3.23@sha256:5b10f432ef3da1b8d4c7eb6c487f2f5a8f096bc91145e68878dd4a5019afde11 FROM golang:1.25-alpine${ALPINE_VERSION} AS builder WORKDIR /app COPY packages/michael/go.mod packages/michael/go.sum ./ RUN go mod download COPY packages/michael/ ./ RUN CGO_ENABLED=0 go build -o /michael . FROM alpine:${ALPINE_VERSION} RUN apk add --no-cache dumb-init \ && addgroup -g 1000 michael && adduser -u 1000 -G michael -s /bin/sh -D michael USER michael COPY --from=builder /michael /usr/local/bin/michael ENV RESTIC_API_PORT=8080 EXPOSE 8080 CMD ["dumb-init", "michael"]