Init docker server file

This commit is contained in:
Alexey Kasyanchuk 2021-03-20 21:21:12 +03:00
parent 0809bb035c
commit 2298a8bedf

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM node:14
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/app
COPY --chown=node:node . .
USER node
RUN npm install
RUN ls -la
RUN npm run buildweb
EXPOSE 8095
CMD [ "node", "src/background/server.js" ]