diff --git a/Dockerfile b/Dockerfile index bec7877..3ca8b6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # stage1 - build react app first -FROM node:19.3.0-alpine as build +FROM node:20.5.1-alpine as build WORKDIR /app ENV PATH /app/node_modules/.bin:$PATH COPY ./package.json /app/ @@ -8,7 +8,7 @@ COPY . /app RUN npm run build # stage 2 - build the final image and copy the react build files -FROM nginx:1.19.0-alpine +FROM nginx:1.25.1-alpine COPY --from=build /app/build /usr/share/nginx/html RUN rm /etc/nginx/conf.d/default.conf COPY config/nginx/nginx.conf /etc/nginx/conf.d diff --git a/README.md b/README.md index b011053..bfba1f6 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,6 @@ `docker push pa4kev/portfolio-reactjs-full:latest` -Node: `v19.3.0` - ## Server (Enaga) `docker pull pa4kev/portfolio-reactjs-full`