license-server/Dockerfile

23 lines
301 B
Docker

FROM golang:1.22 AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o license-server main.go
FROM alpine:latest
RUN apk add --no-cache ca-certificates sqlite
WORKDIR /root/
COPY --from=builder /app/license-server .
EXPOSE 13579
CMD ["./license-server"]