forked from xbapps/xbvr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (37 loc) · 1.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM node:10.16.3-jessie as build-env
### Install Go ###
ENV GO_VERSION=1.12.10 \
GOPATH=$HOME/go-packages \
GOROOT=$HOME/go
ENV PATH=$GOROOT/bin:$GOPATH/bin:$PATH
RUN curl -fsSL https://storage.googleapis.com/golang/go$GO_VERSION.linux-amd64.tar.gz | tar -xzv \
&& go get -u -v \
github.com/acroca/go-symbols \
github.com/cweill/gotests/... \
github.com/davidrjenni/reftools/cmd/fillstruct \
github.com/fatih/gomodifytags \
github.com/haya14busa/goplay/cmd/goplay \
github.com/josharian/impl \
github.com/nsf/gocode \
github.com/ramya-rao-a/go-outline \
github.com/rogpeppe/godef \
github.com/uudashr/gopkgs/cmd/gopkgs \
github.com/zmb3/gogetdoc \
golang.org/x/lint/golint \
golang.org/x/tools/cmd/godoc \
golang.org/x/tools/cmd/gorename \
golang.org/x/tools/cmd/guru \
sourcegraph.com/sqs/goreturns \
github.com/UnnoTed/fileb0x
WORKDIR /app
ADD . /app
RUN cd /app && \
yarn install && \
yarn build && \
go generate && \
go build -tags='json1' -ldflags '-w' -o xbvr main.go
FROM gcr.io/distroless/base
COPY --from=build-env /app/xbvr /
EXPOSE 9998-9999
VOLUME /root/.config/
ENTRYPOINT ["/xbvr"]