feat(jenkins): deploy lint and check in dockerfile

This commit is contained in:
2026-01-09 14:15:11 +01:00
parent 00e6ba3454
commit 8ede8ea80b
6 changed files with 1060 additions and 4 deletions

View File

@@ -11,10 +11,19 @@ WORKDIR /app
# Copy depedencies
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
# Copy all and build
# Install pnpm with cache
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
PNPM_HOME="/pnpm" pnpm install --frozen-lockfile
# Copy all
COPY . .
# Check files
RUN pnpm run lint
RUN pnpm run check
# Build
RUN pnpm build
# --- DEPLOY ---