17 lines
332 B
Docker
17 lines
332 B
Docker
FROM alpine:latest as builder
|
|
|
|
RUN apk add nodejs-current yarn go git
|
|
|
|
COPY dashboard/ /build
|
|
WORKDIR /build
|
|
|
|
RUN yarn install --frozen-lockfile
|
|
RUN yarn build
|
|
|
|
RUN go build -ldflags "-X dashboard/main.version=$(git rev-parse HEAD)"
|
|
|
|
FROM alpine:latest
|
|
|
|
COPY --from=builder /build/dashboard /bin/dashboard
|
|
|
|
ENTRYPOINT /bin/dashboard |