home_data/gatherer/Dockerfile

17 lines
235 B
Docker
Raw Permalink Normal View History

2023-02-11 20:32:51 +00:00
FROM golang:1.20 AS builder
WORKDIR /gatherer
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o /bin/gatherer
FROM debian:buster-slim
COPY --from=builder /bin/gatherer /bin/gatherer
ENTRYPOINT ["/bin/gatherer"]