This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
FROM node:24-alpine AS builder
|
||||
|
||||
ARG PULP_UI_COMMIT
|
||||
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache git && git config --global --add safe.directory /app
|
||||
|
||||
COPY package-lock.json /app/
|
||||
RUN --mount=type=bind,source=package.json,target=./package.json \
|
||||
--mount=type=cache,target=/root/.npm \
|
||||
npm install --legacy-peer-deps --include=dev
|
||||
|
||||
COPY ./ /app
|
||||
|
||||
ENV PATH=/app/node_modules/.bin:$PATH PULP_UI_COMMIT=$PULP_UI_COMMIT
|
||||
RUN npm run build
|
||||
|
||||
FROM scratch
|
||||
WORKDIR /www-root
|
||||
COPY --from=builder /app/dist /www-root
|
||||
|
||||
Reference in New Issue
Block a user