File size: 360 Bytes
ed56a54
 
 
 
 
 
 
 
 
 
 
 
2146e5e
ed56a54
 
2218973
ef0294b
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/*


WORKDIR /app
COPY --link ./ /app
RUN  npm i 

# The base image already creates a user with 1000, no need to call useradd
RUN chown 1000 /app
USER 1000
CMD ["node", "index.js"]