10 lines
323 B
Docker
10 lines
323 B
Docker
FROM --platform=$BUILDPLATFORM node:23.4-alpine AS install
|
|
RUN mkdir -p /temp/prod
|
|
COPY package*.json /temp/prod/
|
|
RUN cd /temp/prod && npm install --frozen-lockfile
|
|
COPY . /temp/prod/
|
|
RUN cd /temp/prod && npm run build
|
|
|
|
FROM nginx:1.27.3-alpine3.20-slim AS release
|
|
COPY --from=install /temp/prod/dist /usr/share/nginx/html
|