File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM node:10.21.0-jessie AS build_node
2+ WORKDIR /tmp/ssl-status-board
3+ COPY . .
4+ RUN yarn install
5+ RUN yarn build
6+
7+ FROM golang:1.14-alpine AS build_go
8+ WORKDIR /go/src/github.com/RoboCup-SSL/ssl-status-board
9+ COPY . .
10+ COPY --from=build_node /tmp/ssl-status-board/dist dist
11+ RUN go get -v -t -d ./...
12+ RUN go get -v github.com/gobuffalo/packr/packr
13+ WORKDIR cmd/ssl-status-board
14+ RUN GOOS=linux GOARCH=amd64 packr build -o ../../release/ssl-status-board_linux_amd64
15+
16+ # Start fresh from a smaller image
17+ FROM alpine:3.9
18+ COPY --from=build_go /go/src/github.com/RoboCup-SSL/ssl-status-board/release/ssl-status-board_linux_amd64 /app/ssl-status-board
19+ EXPOSE 8082
20+ ENTRYPOINT ["/app/ssl-status-board" ]
21+ CMD ["/app/ssl-status-board" , "-address" , ":8082" ]
You can’t perform that action at this time.
0 commit comments