bp0lr / gauplus

MIT License
282 stars 56 forks source link

add docker run #11

Closed benzetaa closed 2 years ago

benzetaa commented 2 years ago

Add Dockerfile

FROM golang:1.17.8-alpine3.14 AS build-env
RUN apk add --no-cache build-base
RUN go install github.com/bp0lr/gauplus@latest

FROM alpine:3.15.0
RUN apk add --no-cache bind-tools ca-certificates
COPY --from=build-env /go/bin/gauplus /usr/local/bin/gauplus
ENTRYPOINT ["gauplus"]

Run Docker:

Examples:

$ docker bulid -t gauplus . 
$ docker run -t gauplus -h
bp0lr commented 2 years ago

hello!, thank you for this PR.

LGTM!