Update node and nginx container versions.
This commit is contained in:
parent
1dafdce6de
commit
38e9f96732
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user