1
0

Update node and nginx container versions.

This commit is contained in:
PA4KEV 2023-08-15 21:45:02 +02:00
parent 1dafdce6de
commit 38e9f96732
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,5 @@
# stage1 - build react app first # stage1 - build react app first
FROM node:19.3.0-alpine as build FROM node:20.5.1-alpine as build
WORKDIR /app WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH ENV PATH /app/node_modules/.bin:$PATH
COPY ./package.json /app/ COPY ./package.json /app/
@ -8,7 +8,7 @@ COPY . /app
RUN npm run build RUN npm run build
# stage 2 - build the final image and copy the react build files # 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 COPY --from=build /app/build /usr/share/nginx/html
RUN rm /etc/nginx/conf.d/default.conf RUN rm /etc/nginx/conf.d/default.conf
COPY config/nginx/nginx.conf /etc/nginx/conf.d COPY config/nginx/nginx.conf /etc/nginx/conf.d

View File

@ -6,8 +6,6 @@
`docker push pa4kev/portfolio-reactjs-full:latest` `docker push pa4kev/portfolio-reactjs-full:latest`
Node: `v19.3.0`
## Server (Enaga) ## Server (Enaga)
`docker pull pa4kev/portfolio-reactjs-full` `docker pull pa4kev/portfolio-reactjs-full`