Skip to content

Commit ead460c

Browse files
authored
Merge fc1fea3a6c4661254c378c4478dd9986542c2b70 into 7fdd53b5bfec2da2ad912b62d53ac38f9d95a774
2 parents bb528c2 + c595643 commit ead460c

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

app/Dockerfile

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
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/*
315

416
# Create app directory
517
WORKDIR /usr/src/app
618

7-
# Install Sails globally
8-
RUN npm install -g sails
9-
1019
# Copy package.json and package-lock.json
1120
COPY package*.json ./
1221

0 commit comments

Comments
 (0)