2021-02-28 05:04:05 +00:00
|
|
|
FROM golang:1.16-alpine as builder
|
|
|
|
RUN apk --no-cache add build-base git
|
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app
|
2022-07-25 03:43:23 +00:00
|
|
|
RUN go build ./cmd/gpm
|
2021-02-28 05:04:05 +00:00
|
|
|
|
|
|
|
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
|