Proper dockerfile

This commit is contained in:
Maxime Augier 2025-02-16 15:49:37 +01:00
parent 96937bf51d
commit ac6cd04217

View File

@ -1,2 +1,8 @@
FROM node:20 FROM node:20
WORKDIR /home/node
COPY *.json /home/node
RUN npm install
COPY *.js *.html /home/node
USER node
EXPOSE 3000 EXPOSE 3000
CMD node index.js