CoolFace
Apppublic

dai/nodejs-template

sourceHugging Faceapache-2.0updated 11mo agoView on Hugging Face
0likes
Dockerfile26 linesDownload Raw Back to root
1# Node base image2FROM node:lts-alpine3 4# Switch to the "node" user5USER node6 7# Set home to the user's home directory8ENV HOME=/home/node PATH=/home/node/.local/bin:$PATH9 10# Set the working directory to the user's home directory11WORKDIR $HOME/app12 13# Moving file to user's home directory14ADD . $HOME/app15 16# Copy the current directory contents into the container at $HOME/app setting the owner to the user17COPY --chown=node . $HOME/app18 19# Loading Dependencies20RUN npm install21 22# Expose application's default port23EXPOSE 786024 25# Entry Point26ENTRYPOINT ["nodejs", "./index.js"]