forked from projecthorus/radiosonde_auto_rx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
44 lines (38 loc) · 1.01 KB
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM python:3.7-buster
EXPOSE 5000/tcp
# Upgrade base packages and install dependencies.
RUN case $(uname -m) in \
"armv6l") extra_packages="libatlas3-base libgfortran5" ;; \
"armv7l") extra_packages="libatlas3-base libgfortran5" ;; \
esac && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
cmake \
libatomic1 \
libusb-1.0-0-dev \
rng-tools \
sox \
tini \
usbutils \
${extra_packages} && \
rm -rf /var/lib/apt/lists/*
# Compile rtl-sdr from source and install.
RUN git clone https://github.com/steve-m/librtlsdr.git /root/librtlsdr && \
mkdir -p /root/librtlsdr/build && \
cd /root/librtlsdr/build && \
cmake -Wno-dev ../ && \
make && \
make install && \
rm -rf /root/librtlsdr && \
ldconfig
# Copy in requirements.txt.
COPY auto_rx/requirements.txt \
/tmp/requirements.txt
# Install Python packages.
RUN pip3 --no-cache-dir install \
--extra-index-url https://www.piwheels.org/simple \
-r /tmp/requirements.txt
# Run bash.
WORKDIR /root
CMD ["/bin/bash"]