FROM golang

WORKDIR /app/server
COPY . .

RUN go mod download
RUN go build -o server
ENTRYPOINT ["./server"]

EXPOSE 8000