FROM golang:1.16-alpine as builder RUN apk --no-cache add build-base git COPY . /app WORKDIR /app RUN go build ./cmd/gpm FROM alpine:latest LABEL maintainer="john.olheiser@gmail.com" COPY --from=builder /app/gpm gpm EXPOSE 3333 ENV GPM_TOKEN="" ENTRYPOINT exec gpm --token $GPM_TOKEN server