-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
52 lines (39 loc) · 1016 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
50
51
52
#
# callrec builder
#
FROM golang AS callrecbuilder
WORKDIR /go
RUN go get github.com/BrandMeister/callrec
RUN go build github.com/BrandMeister/callrec
#
# MD380 builder
#
FROM debian:stretch AS md380builder
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential gcc-arm-linux-gnueabi unzip curl libc6-armel-cross libc6-dev-armel-cross ca-certificates python
WORKDIR /md380tools
COPY src/md380tools .
WORKDIR /md380tools/emulator
RUN make md380-emu
#
# Running container
#
FROM ruby:2.7-buster
RUN apt-get update && apt-get install -y --no-install-recommends \
sox \
wget \
mplayer \
python \
python3 \
python-pip python-setuptools python-dev python-wheel \
qemu-user \
libopus-dev \
nano
RUN pip install bitarray bitstring
RUN gem install mumble-ruby
WORKDIR /app
COPY --from=callrecbuilder /go/callrec .
COPY --from=md380builder /md380tools/emulator/md380-emu .
COPY src .
RUN mkdir -p /app/shared
CMD ./start.sh