restructure docker image; add separate temp dir that can be placed in a
tmpfs
This commit is contained in:
parent
c6bbdffea0
commit
0b98ce1ef2
@ -3,15 +3,22 @@ FROM $BASE_IMAGE
|
|||||||
|
|
||||||
RUN apk add --no-cache bash
|
RUN apk add --no-cache bash
|
||||||
|
|
||||||
|
RUN ln -s /usr/local/lib /usr/local/lib64
|
||||||
|
|
||||||
ADD docker/scripts/direwolf-1.5.patch /
|
ADD docker/scripts/direwolf-1.5.patch /
|
||||||
ADD docker/scripts/install-dependencies.sh /
|
ADD docker/scripts/install-dependencies.sh /
|
||||||
RUN /install-dependencies.sh
|
RUN /install-dependencies.sh
|
||||||
|
|
||||||
ADD . /openwebrx
|
ADD . /opt/openwebrx
|
||||||
|
|
||||||
WORKDIR /openwebrx
|
WORKDIR /opt/openwebrx
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
|
||||||
ENTRYPOINT [ "/openwebrx/docker/scripts/run.sh" ]
|
ENTRYPOINT [ "/opt/openwebrx/docker/scripts/run.sh" ]
|
||||||
EXPOSE 8073
|
EXPOSE 8073
|
||||||
|
@ -32,10 +32,6 @@ rm -rf csdr
|
|||||||
|
|
||||||
git clone https://github.com/szechyjs/mbelib.git
|
git clone https://github.com/szechyjs/mbelib.git
|
||||||
cmakebuild mbelib
|
cmakebuild mbelib
|
||||||
if [ -d "/usr/local/lib64" ]; then
|
|
||||||
# no idea why it's put into there now. alpine does not handle it correctly, so move it.
|
|
||||||
mv /usr/local/lib64/libmbe* /usr/local/lib
|
|
||||||
fi
|
|
||||||
|
|
||||||
git clone https://github.com/jketterl/digiham.git
|
git clone https://github.com/jketterl/digiham.git
|
||||||
cmakebuild digiham
|
cmakebuild digiham
|
||||||
|
Loading…
Reference in New Issue
Block a user