FROM golang AS builder ENV GO111MODULE=on \ CGO_ENABLED=0 \ GOOS=linux RUN apt-get update && apt-get install -y git WORKDIR /build RUN git clone https://github.com/deanxv/kilo2api . RUN go mod download RUN go build -o /kilo2api FROM alpine RUN apk --no-cache add ca-certificates tzdata COPY --from=builder /kilo2api . RUN mkdir -p /app/kilo2api/data EXPOSE 7099 WORKDIR /app/kilo2api/data ENTRYPOINT ["/kilo2api"]