15 lines
360 B
Docker
15 lines
360 B
Docker
FROM node:22-alpine AS base
|
|
WORKDIR /app
|
|
RUN corepack enable
|
|
|
|
FROM base AS build
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
RUN npx nuxi generate
|
|
|
|
FROM nginx:latest
|
|
RUN rm /usr/share/nginx/html/*
|
|
RUN sed -i -e '/location.*\/.*{/a autoindex on\;' /etc/nginx/conf.d/default.conf
|
|
COPY --from=build --chown=1000:1000 /app/.output/public /usr/share/nginx/html/
|