Migrate deployment to Gitea Actions and Portainer
Build and Push Container / docker (push) Successful in 24m19s

This commit is contained in:
2026-03-22 11:43:22 -08:00
parent c611065fde
commit 3b0bf0866a
10 changed files with 178 additions and 95 deletions
+10 -12
View File
@@ -1,20 +1,18 @@
FROM golang:1.15-alpine as dev
FROM golang:1.22-alpine AS builder
WORKDIR /go/src/prepbot
COPY ./go.mod .
COPY ./go.sum .
WORKDIR /src
RUN apk add --no-cache ca-certificates git tzdata
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go install github.com/dustinpianalto/prepbot/...
ARG TARGETARCH=amd64
RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -o /out/prepbot ./cmd/prepbot
CMD [ "go", "run", "cmd/prepbot/main.go"]
FROM alpine:3.20
RUN apk add --no-cache ca-certificates tzdata
from alpine
COPY --from=builder /out/prepbot /usr/local/bin/prepbot
WORKDIR /bin
COPY --from=dev /go/bin/prepbot ./prepbot
CMD [ "prepbot" ]
ENTRYPOINT ["/usr/local/bin/prepbot"]