12 lines
283 B
Docker
12 lines
283 B
Docker
|
FROM golang:1.16-alpine as builder
|
||
|
RUN apk --no-cache add build-base git
|
||
|
COPY . /app
|
||
|
WORKDIR /app
|
||
|
RUN make build
|
||
|
|
||
|
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
|