update dockerfile
This commit is contained in:
parent
c795ca0d14
commit
cb81c4f20b
|
@ -1,9 +1,9 @@
|
||||||
FROM --platform=$BUILDPLATFORM node:23-alpine AS install
|
FROM --platform=$BUILDPLATFORM node:23.4-alpine AS install
|
||||||
RUN mkdir -p /temp/prod
|
RUN mkdir -p /temp/prod
|
||||||
COPY package*.json /temp/prod/
|
COPY package*.json /temp/prod/
|
||||||
RUN cd /temp/prod && npm install --frozen-lockfile
|
RUN cd /temp/prod && npm install --frozen-lockfile
|
||||||
COPY . /temp/prod/
|
COPY . /temp/prod/
|
||||||
RUN cd /temp/prod && npm run build
|
RUN cd /temp/prod && npm run build
|
||||||
|
|
||||||
FROM nginx:1-alpine3.20-slim AS release
|
FROM nginx:1.27.3-alpine3.20-slim AS release
|
||||||
COPY --from=install /temp/prod/dist /usr/share/nginx/html
|
COPY --from=install /temp/prod/dist /usr/share/nginx/html
|
||||||
|
|
Loading…
Reference in New Issue