Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/anchore-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ name: Anchore Syft SBOM scan
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: write
Expand All @@ -34,5 +36,5 @@ jobs:
uses: anchore/sbom-action@bb716408e75840bbb01e839347cd213767269d4a
with:
image: "localbuild/testimage:latest"
artifact-name: image.spdx.json
artifact-name: image-spdx-json
dependency-snapshot: true
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
cache: npm

- name: Install dependencies
run: npm install --no-audit --no-fund
run: npm ci --no-audit --no-fund

- name: Validate Vercel configuration
run: node scripts/validate-vercel-config.mjs
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Optional container image for the Express API; Vercel remains the web deployment target.
FROM node:22-bookworm-slim AS build
FROM node:22-trixie-slim AS build

WORKDIR /app
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends python3 make g++ \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -13,11 +14,14 @@ COPY . .
RUN npm run build
RUN npm prune --omit=dev --no-audit --no-fund

FROM node:22-bookworm-slim AS runtime
FROM node:22-trixie-slim AS runtime

ENV NODE_ENV=production
ENV PORT=3000
WORKDIR /app
RUN apt-get update \
&& apt-get upgrade -y \
&& rm -rf /var/lib/apt/lists/*

COPY --from=build --chown=node:node /app/node_modules ./node_modules
COPY --from=build --chown=node:node /app/src ./src
Expand Down
Loading
Loading