2019-01-22 11:52:03 +00:00
|
|
|
ARG BASE_IMAGE
|
|
|
|
FROM $BASE_IMAGE
|
2019-01-13 14:12:09 +00:00
|
|
|
|
2019-01-22 14:52:53 +00:00
|
|
|
RUN apk add --no-cache bash
|
|
|
|
|
2019-11-24 14:30:53 +00:00
|
|
|
RUN ln -s /usr/local/lib /usr/local/lib64
|
|
|
|
|
2019-08-23 20:21:30 +00:00
|
|
|
ADD docker/scripts/direwolf-1.5.patch /
|
2019-01-21 17:02:58 +00:00
|
|
|
ADD docker/scripts/install-dependencies.sh /
|
2019-01-13 14:12:09 +00:00
|
|
|
RUN /install-dependencies.sh
|
|
|
|
|
2019-11-24 14:30:53 +00:00
|
|
|
ADD . /opt/openwebrx
|
|
|
|
|
|
|
|
WORKDIR /opt/openwebrx
|
2019-01-13 14:12:09 +00:00
|
|
|
|
2019-11-24 14:30:53 +00:00
|
|
|
RUN mkdir -p /tmp/openwebrx && \
|
|
|
|
mv "/opt/openwebrx/config_webrx.py" "/opt/openwebrx/config_webrx.py.orig" && \
|
|
|
|
sed 's/temporary_directory = "\/tmp"/temporary_directory = "\/tmp\/openwebrx"/' < "/opt/openwebrx/config_webrx.py.orig" > "/opt/openwebrx/config_webrx.py" && \
|
|
|
|
rm "/opt/openwebrx/config_webrx.py.orig"
|
2019-01-13 14:12:09 +00:00
|
|
|
|
2019-01-13 21:04:29 +00:00
|
|
|
VOLUME /config
|
|
|
|
|
2019-11-24 14:30:53 +00:00
|
|
|
ENTRYPOINT [ "/opt/openwebrx/docker/scripts/run.sh" ]
|
2019-01-13 14:12:09 +00:00
|
|
|
EXPOSE 8073
|