We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ae819a commit af49e26Copy full SHA for af49e26
.dockerignore
@@ -0,0 +1,17 @@
1
+node_modules
2
+dist
3
+
4
+# nuxt
5
+.nuxt
6
+.output
7
8
+# ide
9
+.vscode
10
+.idea
11
12
+# env
13
+.env
14
+.git
15
16
+# chore
17
+.DS_Store
Dockerfile
@@ -0,0 +1,22 @@
+FROM node:lts-alpine AS build-stage
+WORKDIR /app
+RUN corepack enable
+COPY package.json pnpm-lock.yaml ./
+RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
+ pnpm install --frozen-lockfile
+COPY . .
+RUN pnpm build
+# SSR
+FROM node:lts-alpine AS production-stage
18
+COPY --from=build-stage /app/.output ./.output
19
20
+EXPOSE 3000
21
22
+CMD ["node", ".output/server/index.mjs"]
0 commit comments