Skip to content

Commit

Permalink
Upgrading Node base image
Browse files Browse the repository at this point in the history
1. Includes latest version upgrades for detected vulnerable packages - openssl.

2. Removed busy box upgrade as latest secure version is available in the base image upgrade itself.
Had added it in the previous PR as back then base image didn’t have the latest package version.
  • Loading branch information
Mahadik, Mukul Chandrakant authored and Mahadik, Mukul Chandrakant committed Dec 18, 2023
1 parent b411365 commit 2399d6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM node:20.7.0-alpine
FROM node:20-alpine

RUN mkdir -p /public
WORKDIR /public

RUN npm i -g http-server

RUN apk update && apk upgrade busybox

COPY client /public/client
COPY *.html /public/
COPY i18n /public/i18n
Expand Down
4 changes: 1 addition & 3 deletions frontend/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM node:20.7.0-alpine
FROM node:20-alpine

RUN mkdir -p /public
WORKDIR /public

RUN npm i -g http-server

RUN apk update && apk upgrade busybox

EXPOSE 5050
CMD ["http-server", "-p", "5050"]

0 comments on commit 2399d6d

Please sign in to comment.