File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11FROM node:13-alpine as ui-build
2- COPY web .
2+ COPY web /tmp/web
3+ WORKDIR /tmp/web
34RUN yarn install --silent && yarn build
45
56FROM golang:1.13-alpine as build
7+ WORKDIR /tmp/playground
68COPY cmd ./cmd
79COPY pkg ./pkg
810COPY go.mod .
@@ -11,8 +13,9 @@ RUN go build -o server ./cmd/playground
1113
1214FROM golang:1.13-alpine as production
1315WORKDIR /opt/playground
16+ ENV GOROOT /usr/local/go
1417COPY data ./data
15- COPY --from=ui-build web/build ./public
16- COPY --from=build server .
18+ COPY --from=ui-build /tmp/ web/build ./public
19+ COPY --from=build /tmp/playground/ server .
1720EXPOSE 8000
18- CMD [ ' /opt/playground/server' , ' -f=/opt/playground/data/packages.json' ]
21+ ENTRYPOINT [ " /opt/playground/server" , " -f=/opt/playground/data/packages.json" ]
You can’t perform that action at this time.
0 commit comments