2026-02-23 12:15:23 -08:00
|
|
|
FROM nginx:1.28.2-alpine
|
2026-02-08 02:36:19 -08:00
|
|
|
|
|
|
|
|
# Copy tailscale binaries from official image
|
|
|
|
|
COPY --from=docker.io/tailscale/tailscale:stable \
|
|
|
|
|
/usr/local/bin/tailscaled /usr/local/bin/tailscaled
|
|
|
|
|
COPY --from=docker.io/tailscale/tailscale:stable \
|
|
|
|
|
/usr/local/bin/tailscale /usr/local/bin/tailscale
|
|
|
|
|
|
|
|
|
|
RUN mkdir -p /var/run/tailscale /var/lib/tailscale \
|
2026-02-08 10:05:38 -08:00
|
|
|
&& apk add --no-cache iptables ip6tables \
|
|
|
|
|
&& apk add --no-cache libc6-compat
|
|
|
|
|
|
|
|
|
|
# Copy Alloy binary from official image (Ubuntu-based, needs libc6-compat)
|
2026-02-23 12:15:23 -08:00
|
|
|
COPY --from=docker.io/grafana/alloy:v1.13.1 \
|
2026-02-08 10:05:38 -08:00
|
|
|
/bin/alloy /usr/local/bin/alloy
|
|
|
|
|
|
|
|
|
|
RUN mkdir -p /var/log/nginx /etc/alloy /tmp/alloy-data
|
2026-02-08 02:36:19 -08:00
|
|
|
|
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
2026-02-09 12:01:24 -08:00
|
|
|
COPY error.html /usr/share/nginx/html/error.html
|
2026-02-08 10:05:38 -08:00
|
|
|
COPY alloy.river /etc/alloy/config.alloy
|
2026-02-08 02:36:19 -08:00
|
|
|
COPY start.sh /start.sh
|
|
|
|
|
RUN chmod +x /start.sh
|
|
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
|
|
CMD ["/start.sh"]
|