mirror of https://github.com/IoTcat/sola.git
parent
50b7461d44
commit
c842b1f5d1
2 changed files with 20 additions and 0 deletions
@ -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…
Reference in new issue