File size: 409 Bytes
3a010a2
ed56a54
 
 
 
 
 
 
 
 
2218973
05086a4
ed56a54
05086a4
 
abbc20a
a9dc70b
 
17bb34c
05086a4
 
ed56a54
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM node:20

RUN apt-get update && \
    apt-get install -y \
      bash \
      git git-lfs \
      wget curl procps \
      htop vim nano && \
    rm -rf /var/lib/apt/lists/*

# The base image already creates a user with 1000, no need to call useradd
# RUN useradd -m -u 1000 user
USER 1000
WORKDIR /app

COPY package*.json ./
RUN npm install

COPY --chown=1000 ./ /app
RUN  npm i

CMD ["node", "index.js"]