We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12accac commit 40e258eCopy full SHA for 40e258e
.dockerignore
@@ -0,0 +1,5 @@
1
+.svelte-kit
2
+build
3
+node_modules
4
+package-lock.json
5
+pnpm-lock.yaml
Dockerfile
@@ -1,10 +1,19 @@
-FROM node:18-alpine
+# Create build image
+FROM node:22-alpine AS build
WORKDIR /app
-COPY . .
6
-
+COPY package.json .
7
RUN npm install
8
+
9
+COPY . .
10
RUN npm run build
11
-CMD [ "node", "build" ]
12
+# Create runtime image
13
+FROM node:22-alpine
14
15
+WORKDIR /app
16
17
+COPY --from=build /app/build .
18
19
+CMD [ "node", "." ]
0 commit comments