From 9e53aed1744b62f010b33a2149ffc6e5b497770a Mon Sep 17 00:00:00 2001 From: Boot-Error Date: Sat, 12 Oct 2019 05:29:18 +0530 Subject: [PATCH] Run wtf inside docker container To build the container docker build -t wtfutil . To run wtf docker run -it wtfutil --- Dockerfile | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 24ebafa6..e9c65388 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,17 @@ -FROM scratch -COPY wtfutil / -ENTRYPOINT ["/wtfutil"] +FROM golang:1.13-alpine + +RUN apk add --no-cache make ncurses + +COPY . $GOPATH/src/github.com/wtfutil/wtf + +ENV GOPROXY=https://gocenter.io +ENV GO111MODULE=on +ENV GOSUMDB=off + +WORKDIR $GOPATH/src/github.com/wtfutil/wtf + +ENV PATH=$PATH:./bin + +RUN make build + +ENTRYPOINT "wtfutil"