forked from TheBiggerGuy/docker-ads-b
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-flightaware
43 lines (32 loc) · 1.41 KB
/
Dockerfile-flightaware
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
FROM debian:buster-slim as build
ARG PIAWARE_VERSION=6.1
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
wget git curl ca-certificates devscripts build-essential debhelper tcl8.6-dev autoconf python3-dev python3-venv dh-systemd libz-dev \
libboost-system-dev libboost-program-options-dev libboost-regex-dev libboost-filesystem-dev libssl-dev tcl-dev chrpath
#tcl-tls
RUN git clone http://github.com/flightaware/tcltls-rebuild.git /tcltls-rebuild
WORKDIR /tcltls-rebuild
RUN ./prepare-build.sh buster
WORKDIR /tcltls-rebuild/package-buster
RUN dpkg-buildpackage -b
#piaware
RUN git clone https://github.com/flightaware/piaware_builder.git /piaware_builder
WORKDIR /piaware_builder
RUN git fetch --all --tags && git checkout tags/v${PIAWARE_VERSION}
RUN ./sensible-build.sh buster
WORKDIR /piaware_builder/package-buster
RUN dpkg-buildpackage -b
FROM debian:buster-slim as base
COPY --from=build /tcltls-rebuild/tcl-tls_*.deb /
COPY --from=build /piaware_builder/piaware_*.deb /
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -f -y /tcl-tls_*.deb && \
apt-get install -f -y /piaware_*.deb && \
apt-get clean && \
rm -rf /tcl-tls_*.deb /piaware_*.deb /var/lib/apt/lists/*
COPY piaware.conf /etc/piaware.conf
COPY piaware-runner.sh /usr/bin/piaware-runner
EXPOSE 30106/tcp
ENTRYPOINT ["piaware-runner"]