You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
220 B

FROM golang:1.19.1-buster AS builder
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go build -o /app/main .
FROM ubuntu:20.04
WORKDIR /app
COPY --from=builder /app/main .
CMD ["/app/main"]