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.
24 lines
310 B
Docker
24 lines
310 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 .
|
|
COPY --from=builder /app/tokens/ ./tokens
|
|
|
|
EXPOSE 2022
|
|
EXPOSE 2023
|
|
|
|
ENTRYPOINT [ "./server" ]
|
|
|
|
|
|
|