forked from robotastic/trunk-recorder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (40 loc) · 970 Bytes
/
Dockerfile
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
49
FROM ubuntu:21.04 AS base
# Install everything except cmake
# Install docker for passing the socket to allow for intercontainer exec
RUN apt-get update && \
apt-get -y upgrade &&\
export DEBIAN_FRONTEND=noninteractive && \
apt-get install -y \
apt-transport-https \
build-essential \
ca-certificates \
fdkaac \
git \
docker.io \
gnupg \
gnuradio \
gnuradio-dev \
gr-osmosdr \
libboost-all-dev \
libcurl4-openssl-dev \
libgmp-dev \
libhackrf-dev \
liborc-0.4-dev \
libpthread-stubs0-dev \
libssl-dev \
libuhd-dev \
libusb-dev \
pkg-config \
software-properties-common \
cmake \
sox && \
rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . .
WORKDIR /src/build
RUN cmake .. && make && make install
#USER nobody
WORKDIR /app
# GNURadio requires a place to store some files, can only be set via $HOME env var.
ENV HOME=/tmp
CMD trunk-recorder --config=/app/config.json