File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ /node_modules
2+ /dist
3+ /.git
Original file line number Diff line number Diff line change 1+ FROM node:10.21.0-jessie AS build_node
2+ WORKDIR /tmp/ssl-vision-client
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-vision-client
9+ COPY . .
10+ COPY --from=build_node /tmp/ssl-vision-client/dist dist
11+ RUN go get -v -t -d ./...
12+ RUN go get -v github.com/gobuffalo/packr/packr
13+ WORKDIR cmd/ssl-vision-client
14+ RUN GOOS=linux GOARCH=amd64 packr build -o ../../release/ssl-vision-client_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-vision-client/release/ssl-vision-client_linux_amd64 /app/ssl-vision-client
19+ EXPOSE 8082
20+ ENTRYPOINT ["/app/ssl-vision-client" ]
21+ CMD ["/app/ssl-vision-client" , "-address" , ":8082" ]
You can’t perform that action at this time.
0 commit comments