16 lines
226 B
Docker
16 lines
226 B
Docker
FROM docker.io/node:22-alpine3.19 as build
|
|
|
|
WORKDIR /app
|
|
|
|
ADD . .
|
|
|
|
RUN npm install
|
|
|
|
RUN npm run build
|
|
|
|
FROM docker.io/nginx:1.27.1-alpine
|
|
|
|
COPY --from=build /app/dist/ /www/page/
|
|
|
|
ADD nginx.conf /etc/nginx/conf.d/default.conf
|