reduce size
This commit is contained in:
parent
27571bd63a
commit
51b9d1289a
@ -1,8 +1,5 @@
|
|||||||
FROM raspbian/stretch
|
FROM raspbian/stretch
|
||||||
|
|
||||||
RUN apt-get update &&\
|
|
||||||
apt-get -y install sox libfftw3-dev python rtl-sdr netcat libitpp-dev libsndfile1-dev
|
|
||||||
|
|
||||||
ADD docker/install-dependencies.sh /
|
ADD docker/install-dependencies.sh /
|
||||||
RUN /install-dependencies.sh
|
RUN /install-dependencies.sh
|
||||||
|
|
||||||
@ -10,5 +7,5 @@ ADD . /openwebrx
|
|||||||
|
|
||||||
WORKDIR /openwebrx
|
WORKDIR /openwebrx
|
||||||
|
|
||||||
CMD python openwebrx.py
|
CMD python2.7 openwebrx.py
|
||||||
EXPOSE 8073
|
EXPOSE 8073
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
cd /tmp
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="sox libfftw3-dev python2.7 rtl-sdr netcat libitpp-dev libsndfile1-dev"
|
||||||
BUILD_PACKAGES="git build-essential cmake"
|
BUILD_PACKAGES="git build-essential cmake"
|
||||||
|
|
||||||
apt-get -y install $BUILD_PACKAGES
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
git clone https://github.com/simonyiszk/csdr.git
|
git clone https://github.com/simonyiszk/csdr.git
|
||||||
cd csdr
|
cd csdr
|
||||||
@ -44,6 +46,6 @@ make install
|
|||||||
cd ../..
|
cd ../..
|
||||||
rm -rf dsd
|
rm -rf dsd
|
||||||
|
|
||||||
apt-get -y purge $BUILD_PACKAGES
|
apt-get remove --purge --autoremove -y $BUILD_PACKAGES
|
||||||
apt-get -y autoremove
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user