docker support
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user