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

23 lines
268 B
Docker

# 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" ]