forked from projecthorus/radiosonde_auto_rx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
48 lines (42 loc) · 1.05 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
45
46
47
48
FROM debian:buster-slim
EXPOSE 5000/tcp
# Upgrade base packages and install dependencies.
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
libatlas-base-dev \
libatomic1 \
libsamplerate-dev \
libusb-1.0-0-dev \
pkg-config \
python3 \
python3-dev \
python3-pip \
python3-setuptools \
rng-tools \
sox \
tini \
usbutils && \
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 --mount=type=cache,target=/root/.cache/pip pip3 install \
--no-warn-script-location --no-binary numpy \
-r /root/radiosonde_auto_rx/auto_rx/requirements.txt
# Run bash.
WORKDIR /root
CMD ["/bin/bash"]