initial Docker build commit
Build image / Build base frontend image (push) Failing after 24s

This commit is contained in:
2026-09-04 23:38:31 +04:00
parent 3b3c8ac3f1
commit b031af35d2
2 changed files with 57 additions and 2 deletions
+21
View File
@@ -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