We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9fb5be commit 013a922Copy full SHA for 013a922
1 file changed
Dockerfile
@@ -1,12 +1,14 @@
1
-FROM node:lts AS runtime
2
-WORKDIR /app
+FROM node:lts AS build
3
4
-COPY . .
+ENV PNPM_HOME="/pnpm"
+ENV PATH="$PNPM_HOME:$PATH"
5
+RUN corepack enable
6
-RUN npm install
7
-RUN npm run build
+WORKDIR /app
8
+COPY package*.json ./
9
+RUN pnpm install
10
+COPY . .
11
+RUN pnpm run build
12
-ENV HOST=0.0.0.0
-ENV PORT=4321
-EXPOSE 4321
-CMD ["node", "./dist/server/entry.mjs"]
13
+FROM nginx:alpine AS runtime
14
+COPY --from=build /app/dist /var/html
0 commit comments