Files
.github
atomicfile
cmd
control
derp
ipn
logger
logpolicy
logtail
portlist
ratelimit
safesocket
stun
stunner
tailcfg
tempfork
testy
types
version
wgengine
.gitignore
AUTHORS
CODE_OF_CONDUCT.md
Dockerfile
LICENSE
PATENTS
README.md
SECURITY.md
go.mod
go.sum
tailscale/Dockerfile
2020-02-14 13:39:59 -08:00

20 lines
426 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
COPY --from=build-env /go/bin/* /usr/local/bin/