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