master
IoTcat 2 years ago
parent 50b7461d44
commit c842b1f5d1
  1. 2
      src/hai/.dockerignore
  2. 18
      src/hai/Dockerfile

@ -0,0 +1,2 @@
node_modules
npm-debug.log

@ -0,0 +1,18 @@
FROM node:18
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
COPY . .
CMD [ "node", "index.js" ]
Loading…
Cancel
Save