File tree Expand file tree Collapse file tree 6 files changed +229
-240
lines changed
Expand file tree Collapse file tree 6 files changed +229
-240
lines changed Original file line number Diff line number Diff line change 1717 run : npm i
1818 - name : Lint
1919 run : npm run lint
20+ - name : Run Trivy vulnerability scanner in fs mode
21+ uses :
aquasecurity/[email protected] 22+ with :
23+ scan-type : ' fs'
24+ scan-ref : ' .'
25+ trivy-config : trivy.yaml
2026 - name : Typecheck
2127 run : npm run typecheck
2228 - name : Unit Test
Original file line number Diff line number Diff line change 11FROM node:22-alpine AS base
22
3+
4+ ARG USER=node
5+ ENV HOME /home/$USER
6+
37# Alpine doesn't have curl, so add it
48RUN apk --no-cache add curl
59
610# Set the working directory inside the container
7- WORKDIR /app
11+ USER $USER
12+ WORKDIR $HOME/app
813
914# Copy the package.json and lock file to install dependencies
10- COPY package.json package-lock.json panda.config.ts ./
15+ COPY --chown=$USER:$USER package.json package-lock.json panda.config.ts ./
1116
1217# Install dependencies
1318RUN npm install
1419
1520# Copy the rest of the application files
16- COPY . .
21+ COPY --chown=$USER:$USER . .
1722
1823# Build the Next.js app
1924RUN npm run build
Original file line number Diff line number Diff line change 11/// <reference types="next" />
22/// <reference types="next/image-types/global" />
3+ /// <reference types="next/navigation-types/compat/navigation" />
34
45// NOTE: This file should not be edited
56// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
You can’t perform that action at this time.
0 commit comments