Merge branch 'main' of https://github.com/PluralKit/PluralKit
This commit is contained in:
19
dashboard/Dockerfile
Normal file
19
dashboard/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM alpine:latest as builder
|
||||
|
||||
RUN apk add nodejs-current yarn go git
|
||||
|
||||
COPY dashboard/ /build
|
||||
COPY .git/ /build/.git
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
RUN yarn install --frozen-lockfile
|
||||
RUN yarn build
|
||||
|
||||
RUN sh -c 'go build -ldflags "-X main.version=$(git rev-parse HEAD)"'
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
COPY --from=builder /build/dashboard /bin/dashboard
|
||||
|
||||
ENTRYPOINT /bin/dashboard
|
Reference in New Issue
Block a user