forked from wiedehopf/tar1090
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (13 loc) · 858 Bytes
/
Copy pathDockerfile
File metadata and controls
17 lines (13 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM ghcr.io/sdr-enthusiasts/docker-tar1090:latest-build-1410
# Install Node.js for our adsb.lol proxy
RUN apt-get update && apt-get install -y nodejs npm && rm -rf /var/lib/apt/lists/*
# Copy our proxy server (reads from file, avoids circular dependency)
COPY proxy/server.js /opt/proxy/server.js
# Runtime nginx config injection - runs AFTER 07-nginx-configure regenerates config
# Must be numbered > 07 to run after nginx config is generated
# (Build-time sed doesn't persist because tar1090 regenerates nginx config at startup)
COPY docker/08-inject-proxy-config /etc/s6-overlay/startup.d/08-inject-proxy-config
RUN chmod +x /etc/s6-overlay/startup.d/08-inject-proxy-config
# Run proxy as a proper s6-overlay service (auto-restart, logging, graceful shutdown)
COPY docker/services.d/proxy /etc/services.d/proxy
RUN chmod +x /etc/services.d/proxy/run