Files
DizelBadCoder a10c2de01d
Some checks failed
Release VPS agent / Build and publish Linux agent (push) Failing after 22s
Deploy control plane / Build, push, and deploy production (push) Failing after 22s
add cicd
2026-09-23 22:46:01 +03:00

18 lines
442 B
Docker

# syntax=docker/dockerfile:1.7
FROM node:22.14-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN --mount=type=cache,target=/root/.npm npm ci
COPY . .
RUN npm run build
FROM build AS test
RUN npm run lint
RUN npm run typecheck
RUN npm test -- --run
FROM nginxinc/nginx-unprivileged:1.27-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build --chown=101:101 /app/dist /usr/share/nginx/html
EXPOSE 8080