Skip to content

Commit

Permalink
node 20 LTS
Browse files Browse the repository at this point in the history
audit fixes
  • Loading branch information
sandercox committed May 10, 2024
1 parent d9f06f3 commit 2da8ca4
Show file tree
Hide file tree
Showing 7 changed files with 5,498 additions and 21,065 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN cmake -B /build -S .
RUN cmake --build /build --config Release

## TypeScript build react
FROM node:18-alpine AS build-react
FROM node:20-alpine AS build-react

# create root application folder
WORKDIR /app
Expand All @@ -27,7 +27,7 @@ COPY frontend/public ./public
RUN npm run build

## TypeScript temporary image
FROM node:18-alpine AS build
FROM node:20-alpine AS build

# create root application folder
WORKDIR /app
Expand All @@ -42,9 +42,10 @@ COPY backend/src ./src
RUN npm run build

## Make production image
FROM node:18-alpine
FROM node:20-alpine
WORKDIR /app
COPY backend/package*.json ./
RUN apk update && apk --no-cache upgrade
RUN npm install --only=production
RUN npm install pm2 -g

Expand Down
Loading

0 comments on commit 2da8ca4

Please sign in to comment.