Skip to content

Commit

Permalink
Merge pull request #951 from Portkey-AI/fix/cross_spawn_vuln
Browse files Browse the repository at this point in the history
  • Loading branch information
VisargD authored Feb 21, 2025
2 parents b58e4bb + 3ab9654 commit 2865b4b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./

# Upgrade system packages
RUN apk update && apk upgrade --no-cache

# Upgrade npm to version 10.9.2
RUN npm install -g npm@10.9.2

# Install app dependencies
RUN npm install

Expand All @@ -21,6 +27,12 @@ RUN npm run build \
# Use the official Node.js runtime as a parent image
FROM node:20-alpine

# Upgrade system packages
RUN apk update && apk upgrade --no-cache

# Upgrade npm to version 10.9.2
RUN npm install -g npm@10.9.2

# Set the working directory in the container
WORKDIR /app

Expand Down

0 comments on commit 2865b4b

Please sign in to comment.