File size: 375 Bytes
ed56a54
 
 
 
 
 
 
 
 
 
2218973
05086a4
ed56a54
05086a4
 
17bb34c
05086a4
 
ed56a54
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM node:19-slim

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 --chown=1000 ./ /app
RUN  npm i

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