2020-01-08 14:13:45 +01:00
|
|
|
FROM alpine:latest
|
2020-01-06 18:32:44 +01:00
|
|
|
|
2020-01-08 14:29:41 +01:00
|
|
|
RUN mkdir -p /usr/src/
|
2020-01-06 18:32:44 +01:00
|
|
|
|
2020-01-08 14:13:45 +01:00
|
|
|
RUN apk add --update nodejs npm git
|
2020-01-06 18:32:44 +01:00
|
|
|
|
2020-01-08 14:29:41 +01:00
|
|
|
RUN cd /usr/src && git clone https://github.com/orangecoding/fredy.git
|
2020-01-08 14:13:45 +01:00
|
|
|
|
|
|
|
|
RUN ln -s /usr/src/fredy/conf/ /conf
|
|
|
|
|
|
|
|
|
|
RUN cd /usr/src/fredy/ && npm install
|
2020-01-06 18:32:44 +01:00
|
|
|
|
2020-01-08 14:29:41 +01:00
|
|
|
WORKDIR /usr/src/fredy
|
|
|
|
|
|
2020-01-06 18:32:44 +01:00
|
|
|
EXPOSE 9876
|
|
|
|
|
|
2020-01-06 19:01:36 +01:00
|
|
|
VOLUME [ "/conf" ]
|
2020-01-06 18:32:44 +01:00
|
|
|
|
2020-01-08 14:29:41 +01:00
|
|
|
CMD node index.js --no-daemon
|