All checks were successful
Build and Push Container / docker (push) Successful in 24m19s
19 lines
420 B
Docker
19 lines
420 B
Docker
FROM golang:1.22-alpine AS builder
|
|
|
|
WORKDIR /src
|
|
RUN apk add --no-cache ca-certificates git tzdata
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
ARG TARGETARCH=amd64
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -o /out/prepbot ./cmd/prepbot
|
|
|
|
FROM alpine:3.20
|
|
RUN apk add --no-cache ca-certificates tzdata
|
|
|
|
COPY --from=builder /out/prepbot /usr/local/bin/prepbot
|
|
|
|
ENTRYPOINT ["/usr/local/bin/prepbot"]
|