NuxtJS, Vue, real web app Nuxt content: blog Better mobile/responsive design and practices Better practices overall
This commit is contained in:
+12
-1
@@ -1,2 +1,13 @@
|
||||
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
|
||||
COPY ./src /usr/share/nginx/html
|
||||
RUN rm /usr/share/nginx/html/*
|
||||
COPY --from=build --chown=1000:1000 /app/.output/public /usr/share/nginx/html/
|
||||
|
||||
Reference in New Issue
Block a user