# syntax=docker/dockerfile:1 FROM golang:1.18-alpine as builder WORKDIR /app COPY . . RUN go mod download RUN CGO_ENABLED=0 go build -o /server ./cmd/server/main.go FROM alpine COPY --from=builder /server . EXPOSE 2022 EXPOSE 2023 ENTRYPOINT [ "./server" ]