github.com/EngineerKamesh/gofullstack@v0.0.0-20180609171605-d41341d7d4ee/volume4/section3/gopherface/Dockerfile (about) 1 FROM golang 2 MAINTAINER Kamesh Balasubramanian kamesh@kamesh.com 3 4 # Declare required environment variables 5 ENV GOPHERFACE_APP_ROOT=/go/src/github.com/EngineerKamesh/gofullstack/volume4/section3/gopherface 6 ENV GOPHERFACE_HASH_KEY="CRKVBJs0kfyeQ9Y1" 7 ENV GOPHERFACE_BLOCK_KEY="9LtmRLzVH27CwxrO" 8 ENV GOPATH=/go 9 10 # Get the required Go packages 11 RUN go get -u github.com/gopherjs/gopherjs 12 RUN go get -u honnef.co/go/js/dom 13 RUN go get -u -d -tags=js github.com/gopherjs/jsbuiltin 14 RUN go get -u honnef.co/go/js/xhr 15 RUN go get -u github.com/gopherjs/websocket 16 RUN go get -u go.isomorphicgo.org/go/isokit 17 RUN go get -u github.com/EngineerKamesh/gofullstack 18 19 # Transpile and install the client-side application code 20 RUN cd $GOPHERFACE_APP_ROOT/client; go get ./..; /go/bin/gopherjs build -m --verbose -o $GOPHERFACE_APP_ROOT/static/js/client.min.js 21 22 # Build and install the server-side application code 23 RUN go install github.com/EngineerKamesh/gofullstack/volume4/section3/gopherface 24 25 # Specify the entrypoint 26 ENTRYPOINT /go/bin/gopherface 27 28 # Expose port 8080 of the container 29 EXPOSE 8080 30