mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
c7e2fcd517
We need iptables to make subnet routing work. Without it, Tailscale mostly works, but subnet routing mysteriously doesn't. Signed-off-by: David Anderson <dave@natulte.net>
20 lines
435 B
Docker
20 lines
435 B
Docker
# Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
FROM golang:1.13-alpine AS build-env
|
|
|
|
WORKDIR /go/src/tailscale
|
|
|
|
COPY go.mod .
|
|
COPY go.sum .
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
RUN go install -v ./cmd/...
|
|
|
|
FROM alpine:3.11
|
|
RUN apk add --no-cache ca-certificates iptables
|
|
COPY --from=build-env /go/bin/* /usr/local/bin/
|