17 lines
235 B
Docker
17 lines
235 B
Docker
|
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"]
|
||
|
|