Files
pulp-ui-cri/Dockerfile
T
CrazyHackGUT b031af35d2
Build image / Build base frontend image (push) Failing after 24s
initial Docker build commit
2026-09-04 23:38:31 +04:00

22 lines
504 B
Docker

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