We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb1adc8 + 6174723 commit a8ffffcCopy full SHA for a8ffffc
app/Dockerfile
@@ -1,5 +1,16 @@
1
-# Use the official Node.js image as a base image
2
-FROM node:18-alpine
+# Use the slim version of Debian Bookworm as the base image
+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/*
14
15
# Set the working directory
16
WORKDIR /app
0 commit comments