feat: release action

This commit is contained in:
etwodev
2025-10-05 01:21:16 +01:00
parent b0589ce5c5
commit 4d577122bd
3 changed files with 232 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
# Stage 1: Build Go binary
FROM golang:1.23-alpine AS builder
WORKDIR /app
COPY . .
RUN go mod tidy && 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"]