-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (38 loc) · 1.5 KB
/
Copy pathDockerfile
File metadata and controls
44 lines (38 loc) · 1.5 KB
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 debian:bullseye-slim
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 \
UPDATE_TAR="true" \
UPDATE_TIME="true" \
UPDATE_GRAPH="true"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
COPY rootfs/ /
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
# Required always
net-tools jq bc rrdtool collectd-core \
ca-certificates wget git libpython2.7 \
nginx-light p7zip-full && \
# S6 OVERLAY
chmod +x /scripts/s6-overlay.sh && \
/scripts/s6-overlay.sh && \
# NGINX
rm -f /etc/nginx/nginx.conf && \
rm -f /etc/nginx/sites-enabled/default && \
mv -v /scripts/nginx.conf /etc/nginx/nginx.conf && \
mv -v /scripts/tar1090 /etc/nginx/sites-enabled/tar1090 && \
mkdir -p /srv/nginx/ && \
mv -v /scripts/timelapse1090.conf /srv/nginx/timelapse1090.conf && \
# Apps
git clone --depth 1 -b master https://github.com/wiedehopf/tar1090-db /srv/tar1090-db && \
git clone --depth 1 -b master https://github.com/wiedehopf/tar1090 /srv/tar1090 && \
git clone --depth 1 -b master https://github.com/wiedehopf/timelapse1090 /srv/timelapse1090 && \
git clone --depth 1 -b master https://github.com/wiedehopf/graphs1090 /srv/graphs1090 && \
# Nettoyage
apt-get autoremove -y && \
rm -rf /scripts /var/lib/apt/lists/* && \
# Healthcheck
chmod +x /healthcheck.sh
ENTRYPOINT [ "/init" ]
EXPOSE 80/tcp
VOLUME ["/var/readsb/","/data/"]
HEALTHCHECK --start-period=120s --interval=300s CMD /healthcheck.sh
LABEL maintainer="Jeremie-C <Jeremie-C@users.noreply.github.com>"