FROM golang:latest

WORKDIR /app

COPY go.mod .
COPY go.sum .

RUN go mod download

COPY server_run.go .

RUN go build -o myapp

CMD ["/app/myapp"]