Add file check in dockerfile
Some checks failed
Portfolio/pipeline/head There was a failure building this commit

This commit is contained in:
2026-01-09 14:15:11 +01:00
parent 75bf6d21b5
commit 545ecb8fa8
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 ---