added Dockerfile

This commit is contained in:
Samuel Philipp 2020-02-27 19:04:38 +01:00
parent ea55fda9e5
commit 0d4e6c6f80
5 changed files with 21 additions and 7 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM node:alpine
MAINTAINER mail@sp-codes.de
WORKDIR monitor
COPY index.js package.json ./
RUN mkdir -p /monitor/data \
&& apk --no-cache add nmap git \
&& npm install \
&& apk del git
CMD npm run start