Geeksbot/Dockerfile
WayfinderAK a1ee9e35cc
Some checks failed
Build and Push Container / docker (push) Failing after 19m3s
Migrate deployment to Gitea Actions and Portainer
2026-03-22 11:43:22 -08:00

19 lines
425 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/geeksbot ./cmd/geeksbot
FROM alpine:3.20
RUN apk add --no-cache ca-certificates tzdata
COPY --from=builder /out/geeksbot /usr/local/bin/geeksbot
ENTRYPOINT ["/usr/local/bin/geeksbot"]