Skip to content

Commit c2f7c66

Browse files
committed
fixed one more
1 parent 82385e3 commit c2f7c66

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

samples/sveltekit/sveltekit/Dockerfile

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
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

154
WORKDIR /app
165

@@ -30,18 +19,7 @@ RUN npm run build
3019
RUN 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

4624
WORKDIR /app
4725

0 commit comments

Comments
 (0)