mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 21:27:31 +00:00
.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
20 lines
426 B
Docker
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/
|