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 11# 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
143
154WORKDIR /app
165
@@ -30,18 +19,7 @@ RUN npm run build
3019RUN ls -l .svelte-kit/output
3120
3221# 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
4523
4624WORKDIR /app
4725
You can’t perform that action at this time.
0 commit comments