FROM golang:1.19.3-bullseye

WORKDIR /app

COPY go.mod /app
COPY go.sum /app
RUN go mod download

COPY . /app

RUN go build -o main .

CMD ["/app/main"]