local files relative to recorder root

This commit is contained in:
Jan-Piet Mens
2016-01-25 09:30:26 +01:00
parent fc64f987f1
commit 0b4310d91a

View File

@@ -33,18 +33,18 @@ RUN mkdir -p /usr/local/src /var/log/supervisor
WORKDIR /usr/local/src
RUN git clone https://github.com/owntracks/recorder.git
WORKDIR /usr/local/src/recorder
COPY config.mk /usr/local/src/recorder/config.mk
COPY docker/config.mk /usr/local/src/recorder/config.mk
RUN make && make install
RUN chown owntracks /usr/local/bin/ocat /usr/local/sbin/ot-recorder && \
chgrp owntracks /usr/local/bin/ocat /usr/local/sbin/ot-recorder && \
chmod 7111 /usr/local/bin/ocat /usr/local/sbin/ot-recorder
COPY launcher.sh /usr/local/sbin/launcher.sh
COPY generate-CA.sh /usr/local/sbin/generate-CA.sh
COPY docker/launcher.sh /usr/local/sbin/launcher.sh
COPY docker/generate-CA.sh /usr/local/sbin/generate-CA.sh
RUN chmod 755 /usr/local/sbin/launcher.sh /usr/local/sbin/generate-CA.sh
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY mosquitto.conf mosquitto.acl /etc/mosquitto/
COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY docker/mosquitto.conf docker/mosquitto.acl /etc/mosquitto/
EXPOSE 1883 8883 8083
CMD ["/usr/local/sbin/launcher.sh"]