File tree Expand file tree Collapse file tree 1 file changed +2
-24
lines changed
samples/sveltekit/sveltekit Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Original file line number Diff line number Diff line change 1
1
# Stage 1: Build the application
2
- FROM debian:bookworm-slim as build
3
-
4
- # Set environment variables to avoid interactive prompts during package installation
5
- ENV DEBIAN_FRONTEND=noninteractive
6
-
7
- # Install curl and Node.js 20.x
8
- RUN apt-get update && apt-get install -y \
9
- curl \
10
- && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
11
- && apt-get install -y nodejs \
12
- && apt-get clean \
13
- && rm -rf /var/lib/apt/lists/*
2
+ FROM node:bookworm as build
14
3
15
4
WORKDIR /app
16
5
@@ -30,18 +19,7 @@ RUN npm run build
30
19
RUN ls -l .svelte-kit/output
31
20
32
21
# Stage 2: Run the application
33
- FROM debian:bookworm-slim
34
-
35
- # Set environment variables to avoid interactive prompts during package installation
36
- ENV DEBIAN_FRONTEND=noninteractive
37
-
38
- # Install curl and Node.js 20.x
39
- RUN apt-get update && apt-get install -y \
40
- curl \
41
- && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
42
- && apt-get install -y nodejs \
43
- && apt-get clean \
44
- && rm -rf /var/lib/apt/lists/*
22
+ FROM node:bookworm
45
23
46
24
WORKDIR /app
47
25
You can’t perform that action at this time.
0 commit comments