File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
- # Dockerfile
2
- FROM node:14
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
+ # Update the package list and install curl, Node.js, npm, and Sails.js globally
8
+ RUN apt-get update && apt-get install -y \
9
+ curl \
10
+ && curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
11
+ && apt-get install -y nodejs \
12
+ && npm install -g sails \
13
+ && apt-get clean \
14
+ && rm -rf /var/lib/apt/lists/*
3
15
4
16
# Create app directory
5
17
WORKDIR /usr/src/app
6
18
7
- # Install Sails globally
8
- RUN npm install -g sails
9
-
10
19
# Copy package.json and package-lock.json
11
20
COPY package*.json ./
12
21
You can’t perform that action at this time.
0 commit comments