dev-mode-javascript / Dockerfile
sbrandeis's picture
sbrandeis HF staff
Update Dockerfile
17bb34c verified
raw
history blame contribute delete
375 Bytes
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"]