2022-06-03 05:01:54 +00:00
|
|
|
FROM alpine:latest as builder
|
|
|
|
|
|
|
|
RUN apk add nodejs-current yarn go git
|
|
|
|
|
|
|
|
COPY dashboard/ /build
|
2022-06-05 15:33:02 +00:00
|
|
|
COPY .git/ /build/.git
|
|
|
|
|
2022-06-03 05:01:54 +00:00
|
|
|
WORKDIR /build
|
|
|
|
|
|
|
|
RUN yarn install --frozen-lockfile
|
|
|
|
RUN yarn build
|
|
|
|
|
2022-06-05 15:33:02 +00:00
|
|
|
RUN sh -c 'go build -ldflags "-X main.version=$(git rev-parse HEAD)"'
|
2022-06-03 05:01:54 +00:00
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
COPY --from=builder /build/dashboard /bin/dashboard
|
|
|
|
|
|
|
|
ENTRYPOINT /bin/dashboard
|