chore: update releases [ci skip]

This commit is contained in:
etwodev
2025-10-05 14:26:43 +01:00
parent da83dabd83
commit bb2213fd3e
3 changed files with 62 additions and 174 deletions

View File

@@ -1,11 +1,14 @@
# Stage 1: Build Go binary
FROM golang:1.23-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go mod tidy && go build -o /portainer-deploy main.go
RUN CGO_ENABLED=0 GOOS=linux go build -o /portainer-deploy main.go
# Stage 2: Runtime container
FROM alpine:3.20
RUN apk add --no-cache ca-certificates
COPY --from=builder /portainer-deploy /usr/local/bin/portainer-deploy
ENTRYPOINT ["portainer-deploy"]
USER nobody
ENTRYPOINT ["/usr/local/bin/portainer-deploy"]