diff --git a/Dockerfile b/Dockerfile index c01f574..d9e9682 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,19 @@ -FROM node:10 -# Create app directory +FROM alpine:latest -WORKDIR / +RUN mkdir -p /usr/src/ -COPY package*.json ./ +RUN apk add --update nodejs npm git -RUN npm install +RUN cd /usr/src && git clone https://github.com/orangecoding/fredy.git -COPY . . +RUN ln -s /usr/src/fredy/conf/ /conf + +RUN cd /usr/src/fredy/ && npm install + +WORKDIR /usr/src/fredy EXPOSE 9876 VOLUME [ "/conf" ] -CMD node /index.js --no-daemon \ No newline at end of file +CMD node index.js --no-daemon \ No newline at end of file