ryu-js / Dockerfile
randydev's picture
Update Dockerfile
3a010a2 verified
raw
history blame
409 Bytes
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"]