docker support

This commit is contained in:
Akom
2020-07-06 09:29:41 -04:00
parent 2099e96888
commit 465a3cb89f
3 changed files with 86 additions and 1 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM node
EXPOSE 3000
RUN groupadd osweather && useradd --no-log-init -m -g osweather osweather
USER osweather
ADD --chown=osweather:osweather . weather
WORKDIR weather
RUN npm install
RUN npm run compile
CMD npm start