2024-12-12 11:58:38 +00:00
|
|
|
FROM --platform=$BUILDPLATFORM node:23.4-alpine AS install
|
2024-04-20 12:08:03 +00:00
|
|
|
RUN mkdir -p /temp/prod
|
2024-12-01 12:42:05 +00:00
|
|
|
COPY package*.json /temp/prod/
|
|
|
|
RUN cd /temp/prod && npm install --frozen-lockfile
|
2024-04-20 12:08:03 +00:00
|
|
|
COPY . /temp/prod/
|
2024-12-01 12:42:05 +00:00
|
|
|
RUN cd /temp/prod && npm run build
|
2024-04-20 12:01:08 +00:00
|
|
|
|
2024-12-12 11:58:38 +00:00
|
|
|
FROM nginx:1.27.3-alpine3.20-slim AS release
|
2024-04-27 16:17:56 +00:00
|
|
|
COPY --from=install /temp/prod/dist /usr/share/nginx/html
|