Simplify cli build
This commit is contained in:
parent
c3bed7419a
commit
8fb43c1cbd
1 changed files with 3 additions and 13 deletions
|
|
@ -2,20 +2,9 @@ FROM node:22-slim AS builder
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY . .
|
||||||
|
|
||||||
COPY sync-client/package*.json ./sync-client/
|
RUN npm ci
|
||||||
COPY local-client-cli/package*.json ./local-client-cli/
|
|
||||||
|
|
||||||
RUN npm ci --workspaces
|
|
||||||
|
|
||||||
COPY sync-client/ ./sync-client/
|
|
||||||
COPY local-client-cli/ ./local-client-cli/
|
|
||||||
|
|
||||||
WORKDIR /build/sync-client
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
WORKDIR /build/local-client-cli
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:22-alpine
|
FROM node:22-alpine
|
||||||
|
|
@ -24,6 +13,7 @@ LABEL org.opencontainers.image.title="VaultLink Local CLI"
|
||||||
LABEL org.opencontainers.image.description="Standalone CLI for VaultLink sync client"
|
LABEL org.opencontainers.image.description="Standalone CLI for VaultLink sync client"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/schmelczer/vault-link"
|
LABEL org.opencontainers.image.source="https://github.com/schmelczer/vault-link"
|
||||||
LABEL org.opencontainers.image.licenses="MIT"
|
LABEL org.opencontainers.image.licenses="MIT"
|
||||||
|
LABEL org.opencontainers.image.authors="andras@schmelczer.dev"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue