added Dockerfile

This commit is contained in:
Adam
2020-01-08 14:52:16 +01:00
parent 2f27ce1f37
commit bbfe4b34eb
2 changed files with 22 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
FROM alpine:latest
RUN mkdir -p /usr/src/
#Install Software
RUN apk add --update nodejs npm git
RUN cd /usr/src && git clone https://github.com/orangecoding/fredy.git
@@ -15,5 +15,5 @@ WORKDIR /usr/src/fredy
EXPOSE 9876
VOLUME [ "/conf" ]
CMD node index.js --no-daemon
# --no-daemon is required for keeping Container alive
CMD node index.js --no-daemon