Skip to content

Commit a8ffffc

Browse files
authored
Merge fc1fea3a6c4661254c378c4478dd9986542c2b70 into 7fdd53b5bfec2da2ad912b62d53ac38f9d95a774
2 parents fb1adc8 + 6174723 commit a8ffffc

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

app/Dockerfile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
# Use the official Node.js image as a base image
2-
FROM node:18-alpine
1+
# Use the slim version of Debian Bookworm as the base image
2+
FROM debian:bookworm-slim
3+
4+
# Set environment variables to avoid interactive prompts during package installation
5+
ENV DEBIAN_FRONTEND=noninteractive
6+
7+
# Install curl, Node.js 18.x, and npm
8+
RUN apt-get update && apt-get install -y \
9+
curl \
10+
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
11+
&& apt-get install -y nodejs \
12+
&& apt-get clean \
13+
&& rm -rf /var/lib/apt/lists/*
314

415
# Set the working directory
516
WORKDIR /app

0 commit comments

Comments
 (0)