refactor: move dockerfiles to package folders

This commit is contained in:
spiral 2022-07-05 15:37:15 -04:00
parent cc0edd3ed8
commit 303ef71805
No known key found for this signature in database
GPG key ID: 244A11E4B0BCF40E
6 changed files with 3 additions and 4 deletions

View file

@ -1,19 +0,0 @@
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