2018-11-21 21:35:56 +00:00
|
|
|
ARG BUILD_FROM
|
|
|
|
FROM $BUILD_FROM AS builder
|
|
|
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
abuild linux-headers musl-dev mosquitto-dev \
|
|
|
|
lmdb-dev curl-dev libconfig-dev gcc make libsodium-dev && \
|
2020-10-02 14:41:01 +00:00
|
|
|
wget -q https://github.com/owntracks/recorder/archive/0.8.4.tar.gz -O - | tar xvzC /tmp
|
2018-11-21 21:35:56 +00:00
|
|
|
|
2020-10-02 14:41:01 +00:00
|
|
|
COPY config.mk /tmp/recorder-0.8.4/
|
2018-11-21 21:35:56 +00:00
|
|
|
|
2020-10-02 14:41:01 +00:00
|
|
|
RUN cd /tmp/recorder-0.8.4/ && \
|
2018-11-21 21:35:56 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
|
|
|
|
ARG BUILD_FROM
|
|
|
|
FROM $BUILD_FROM
|
|
|
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
|
|
|
|
RUN apk -U --no-cache upgrade && \
|
|
|
|
apk --no-cache add jq && \
|
|
|
|
apk --no-cache add libcurl lmdb libconfig libsodium mosquitto-libs
|
|
|
|
|
|
|
|
EXPOSE 8083
|
|
|
|
|
2020-10-02 14:41:01 +00:00
|
|
|
COPY --from=builder /tmp/recorder-0.8.4/ocat /usr/sbin/
|
|
|
|
COPY --from=builder /tmp/recorder-0.8.4/ot-recorder /usr/sbin/
|
|
|
|
COPY --from=builder /tmp/recorder-0.8.4/docroot /var/spool/owntracks/recorder/htdocs
|
2018-11-21 21:35:56 +00:00
|
|
|
COPY run.sh /
|
|
|
|
RUN chmod a+x /run.sh
|
|
|
|
|
|
|
|
CMD [ "/run.sh" ]
|