Dockerfile.base 671 B

123456789101112
  1. # Copyright (c) Tailscale Inc & AUTHORS
  2. # SPDX-License-Identifier: BSD-3-Clause
  3. FROM alpine:3.22
  4. RUN apk add --no-cache ca-certificates iptables iptables-legacy iproute2 ip6tables iputils
  5. # Alpine 3.19 replaced legacy iptables with nftables based implementation. We
  6. # can't be certain that all hosts that run Tailscale containers currently
  7. # suppport nftables, so link back to legacy for backwards compatibility reasons.
  8. # TODO(irbekrm): add some way how to determine if we still run on nodes that
  9. # don't support nftables, so that we can eventually remove these symlinks.
  10. RUN ln -s /sbin/iptables-legacy /sbin/iptables
  11. RUN ln -s /sbin/ip6tables-legacy /sbin/ip6tables