mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Run wtf inside docker container
To build the container docker build -t wtfutil . To run wtf docker run -it wtfutil
This commit is contained in:
parent
a1526b97e8
commit
9e53aed174
20
Dockerfile
20
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user