Dockerized bot !
This commit is contained in:
1 parent
dd9953cca7
commit
f649bff92b
4 files changed
+75
-2
No files matched your search
@@ -0,0 +1,9 @@
|
||||
FROM node:latest
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /usr/src/app
|
||||
COPY ["package.json", "package-lock.json*", "./"]
|
||||
RUN npm install --production --silent && mv node_modules ../
|
||||
COPY . .
|
||||
RUN chown -R node /usr/src/app
|
||||
USER node
|
||||
CMD ["npm", "start"]
|
||||
Reference in new issue
Block a user