File tree Expand file tree Collapse file tree 4 files changed +320
-383
lines changed
Expand file tree Collapse file tree 4 files changed +320
-383
lines changed Original file line number Diff line number Diff line change 1+ node_modules
2+ dist
3+ .git
4+ .gitignore
5+ .vscode
6+ coverage
7+ * .log
8+ .env
9+ .DS_Store
Original file line number Diff line number Diff line change 1- # SPDX-FileCopyrightText: 2025 diggsweden/rest-api-profil-lint-processor
2- #
3- # SPDX-License-Identifier: CC0-1.0
1+ FROM node:22.20.0-slim@sha256:d943bf20249f8b92eff6f605362df2ee9cf2d6ce2ea771a8886e126ec8714f08 AS build
2+ WORKDIR /app
3+
4+ COPY package*.json ./
5+
6+ RUN npm ci --no-audit --no-fund --ignore-scripts
7+
8+ COPY . .
49
5- FROM node:22.20.0-slim@sha256:d943bf20249f8b92eff6f605362df2ee9cf2d6ce2ea771a8886e126ec8714f08 AS packages
6- ENV NODE_ENV=staging
10+ RUN npm run build
711
12+ RUN npm prune --omit=dev
13+
14+ FROM node:22.20.0-slim@sha256:d943bf20249f8b92eff6f605362df2ee9cf2d6ce2ea771a8886e126ec8714f08 AS runtime
15+ ENV NODE_ENV=production
816WORKDIR /app
917
10- COPY --chown=node:node ["./" ,"./" ]
18+ COPY --from=build /app/dist ./dist
19+ COPY --from=build /app/node_modules ./node_modules
20+ COPY --from=build /app/package*.json ./
21+
22+ COPY --from=build /app/document ./document
23+ COPY --from=build /app/README.md ./README.md
24+ COPY --from=build /app/GUIDELINES.md ./GUIDELINES.md
25+
26+ RUN chown -R node:node /app
27+ USER node
1128
12- # RUN npm config set strict-ssl false
13- RUN npm install --omit=dev --verbose
14- RUN npm install ts-node typescript --omit=dev --verbose
15- ENTRYPOINT ["npm" , "start" , "--" ]
29+ ENTRYPOINT ["node" , "dist/app.js" ]
You can’t perform that action at this time.
0 commit comments