Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM golang:latest
- RUN echo "HOME=$HOME"
- ENV GO11MODULE=on
- ENV XDG_CACHE_HOME=/tmp/.cache
- ENV HOME=/
- ENV GOCACHE=/.gocache
- ADD . $HOME
- WORKDIR $HOME
- RUN apt -y update && apt -y install git
- RUN go get "github.com/elazarl/go-bindata-assetfs"
- RUN go get "golang.org/x/net/websocket"
- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main ./goplay
- CMD ["./main"]
- EXPOSE 8080
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement