Files
CrazyHackGUT f4423d9aa0
Build image / Build base frontend image (push) Successful in 2m52s
Build image / Build nginx image (push) Successful in 32s
fix: remove git from build container
2026-09-06 12:12:37 +04:00

21 lines
428 B
Docker

FROM node:24-alpine AS builder
ARG PULP_UI_COMMIT
WORKDIR /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