From 3ffe5a183eea6769aa0fac8edff6e8f6d981bf9c Mon Sep 17 00:00:00 2001 From: Adam Bouhrara <42783707+Adamou02@users.noreply.github.com> Date: Tue, 30 Jul 2024 01:08:15 +0800 Subject: [PATCH] Updating Dockerfile with latest Node version (#378) --- Dockerfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b16a2199..00ff3cc06 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,16 @@ -FROM node:13.12.0-alpine +FROM node:20.11-alpine # set working directory WORKDIR /app -# add `/app/node_modules/.bin` to $PATH -ENV PATH /app/node_modules/.bin:$PATH - # install app dependencies -COPY package.json ./ -COPY package-lock.json ./ -RUN npm install --silent -RUN npm install -#react-scripts@3.4.1 -g --silent +COPY package.json package-lock.json ./ +RUN npm install # add app COPY . ./ +EXPOSE 3001 + # start app CMD ["npm", "start"] \ No newline at end of file