summaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
AgeCommit message (Collapse)AuthorFilesLines
2025-09-17docker: bump alpine v3.19 -> 3.22 (#17155)Tom Proctor1-3/+3
Updates #15328 Change-Id: Ib33baf8756b648176dce461b25169e079cbd5533 Signed-off-by: Tom Proctor <tomhjp@users.noreply.github.com>
2025-08-26go.toolchain.branch: bump to go1.25 (#16954)Patrick O'Doherty1-1/+1
go.toolchain.rev: bump go1.25 version flake.nix: bump Go to 1.25 Updates #16330 Signed-off-by: Patrick O'Doherty <patrick@tailscale.com>
2025-07-04Dockerfile,build_docker.sh: add a note on how to build local images (#16471)Irbe Krumina1-0/+9
Updates#cleanup Signed-off-by: Irbe Krumina <irbe@tailscale.com>
2025-03-26Bump Alpine, link iptables back to legacy (#15428)Irbe Krumina1-1/+3
Bumps Alpine 3.18 -> 3.19. Alpine 3.19 links iptables to nftables-based implementation that can break hosts that don't support nftables. Link iptables back to the legacy implementation till we have some certainty that changing to nftables based implementation will not break existing setups. Updates tailscale/tailscale#15328 Signed-off-by: Irbe Krumina <irbe@tailscale.com>
2025-02-19go.toolchain.branch: update to Go 1.24 (#15016)Brad Fitzpatrick1-1/+1
* go.toolchain.branch: update to Go 1.24 Updates #15015 Change-Id: I29c934ec17e60c3ac3264f30fbbe68fc21422f4d Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> * cmd/testwrapper: fix for go1.24 Updates #15015 Signed-off-by: Paul Scott <paul@tailscale.com> * go.mod,Dockerfile: bump to Go 1.24 Also bump golangci-lint to a version that was built with 1.24 Updates #15015 Signed-off-by: Andrew Lytvynov <awly@tailscale.com> --------- Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> Signed-off-by: Paul Scott <paul@tailscale.com> Signed-off-by: Andrew Lytvynov <awly@tailscale.com> Co-authored-by: Paul Scott <paul@tailscale.com> Co-authored-by: Andrew Lytvynov <awly@tailscale.com>
2025-01-13Revert "Dockerfile: bump base alpine image (#14604)" (#14620)Andrew Lytvynov1-1/+1
This reverts commit 5fdb4f83ad23f0ee7a9dc08ecc2a0ceeabd81fc3. Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
2025-01-10Dockerfile: bump base alpine image (#14604)Andrew Lytvynov1-1/+1
Bump the versions to pick up some CVE patches. They don't affect us, but customer scanners will complain. Updates #cleanup Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
2024-08-22all: switch to and require Go 1.23Brad Fitzpatrick1-1/+1
Updates #12912 Change-Id: Ib4ae26eb5fb68ad2216cab4913811b94f7eed5b6 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-08-14go.{mod,sum}: migrate from nhooyr.io/websocket to github.com/coder/websocketKyle Carberry1-1/+1
Coder has just adopted nhooyr/websocket which unfortunately changes the import path. `github.com/coder/coder` imports `tailscale.com/net/wsconn` which was still pointing to `nhooyr.io/websocket`, but this change updates it. See https://coder.com/blog/websocket Updates #13154 Change-Id: I3dec6512472b14eae337ae22c5bcc1e3758888d5 Signed-off-by: Kyle Carberry <kyle@carberry.com>
2024-07-30Dockerfile: add a warning that this is not used to build our published ↵Irbe Krumina1-0/+7
images (#12955) Add a warning that the Dockerfile in the OSS repo is not the currently used mechanism to build the images we publish - for folks who want to contribute to image build scripts or otherwise need to understand the image build process that we use. Updates#cleanup Signed-off-by: Irbe Krumina <irbe@tailscale.com>
2024-07-17Dockerfile: remove warning (#12841)Cameron Stokes1-11/+0
Fixes tailscale/tailscale#12842 Signed-off-by: Cameron Stokes <cameron@cameronstokes.com>
2024-02-07Dockerfile: use Go 1.22Brad Fitzpatrick1-1/+1
Updates #11058 Change-Id: I0f63be498be33d71bd90b7956f9fe9666fd7a696 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-12-11ALPINE.txt,Dockerfile{.base},build_docker.sh: bump alpine (#10543)Irbe Krumina1-1/+1
Bump alpine base image version used to build tailscale/tailscale and tailscale/k8s-operator images 3.16 -> 3.18 Updates #cleanup Signed-off-by: Irbe Krumina <irbe@tailscale.com>
2023-08-08all: require Go 1.21Brad Fitzpatrick1-1/+1
Updates #8419 Change-Id: I809b6a4d59d92a2ab6ec587ccbb9053376bf02c2 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-06-14.github/workflows: Add docker build check (#8345)Claire Wang1-1/+1
Fixes #8344 Signed-off-by: Claire Wang <claire@tailscale.com>
2023-06-14Remove unused dependency from dockerfile (#8343)Claire Wang1-2/+1
Closes #8342 Signed-off-by: Claire Wang <claire@tailscale.com>
2023-02-14Dockerfile: fix docker buildDavid Anderson1-3/+3
The stamp vars got renamed and I forgot to update these scripts. Signed-off-by: David Anderson <danderson@tailscale.com>
2023-02-11version: unexport all vars, turn Short/Long into funcsDavid Anderson1-3/+3
The other formerly exported values aren't used outside the package, so just unexport them. Signed-off-by: David Anderson <danderson@tailscale.com>
2023-02-01all: update to Go 1.20, use strings.CutPrefix/Suffix instead of our forkBrad Fitzpatrick1-1/+1
Updates #7123 Updates #5309 Change-Id: I90bcd87a2fb85a91834a0dd4be6e03db08438672 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-01-27all: update copyright and license headersWill Norris1-3/+2
This updates all source files to use a new standard header for copyright and license declaration. Notably, copyright no longer includes a date, and we now use the standard SPDX-License-Identifier header. This commit was done almost entirely mechanically with perl, and then some minimal manual fixes. Updates #6865 Signed-off-by: Will Norris <will@tailscale.com>
2022-11-03cmd/containerboot: PID1 for running tailscaled in a container.David Anderson1-2/+4
This implements the same functionality as the former run.sh, but in Go and with a little better awareness of tailscaled's lifecycle. Also adds TS_AUTH_ONCE, which fixes the unfortunate behavior run.sh had where it would unconditionally try to reauth every time if you gave it an authkey, rather than try to use it only if auth is actually needed. This makes it a bit nicer to deploy these containers in automation, since you don't have to run the container once, then go and edit its definition to remove authkeys. Signed-off-by: David Anderson <danderson@tailscale.com>
2022-09-16Update Dockerfile to use golang:1.19-alpineLuis Peralta1-1/+1
Tailscale @4a82b31 does not build in the container image due to using golang:1.18 image Signed-off-by: Luis Peralta <luis.peralta@gmail.com>
2022-07-21docs/k8s: use job control in run.shMaisem Ali1-0/+1
This has the benefit of propagating SIGINT to tailscaled, which in turn can react to the event and logout in case of an ephemeral node. Also fix missing run.sh in Dockerfile. Signed-off-by: Maisem Ali <maisem@tailscale.com>
2022-06-29Dockerfile: fix buildBrad Fitzpatrick1-1/+15
The Dockerfile directions said: But that failed with: Step 14/15 : FROM ghcr.io/tailscale/alpine-base:3.14 Head "https://ghcr.io/v2/tailscale/alpine-base/manifests/3.14": denied: denied So I guess the Dockerfile.base part was undocumented. But it only had one line anyway, so move it here to avoid the intermediate layer's published permissions problem entirely. Also optimize the cachability a bit while here. Change-Id: I846ad59fe7e88e6126925689fae78bfb80c279f0 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-03-16Dockerfile: require Go 1.18Josh Bleecher Snyder1-1/+1
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-12-19Dockerfile: remove long-obsolete -tags=xversionBrad Fitzpatrick1-1/+1
That build tag hasn't been used since 5088af68cf (June 2nd, 2021, for 1.10.0) Change-Id: Ib6093a975505339872a0dc663fff9fc09c13bbc0
2021-11-22build_docker.sh: use github.com/tailscale/mkctr instead of dockerMaisem Ali1-2/+1
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2021-11-03Add multiarch image make targetMangirdas1-1/+2
Updates #3112 Signed-off-by: Mangirdas <mangirdas@judeikis.lt>
2021-10-28Dockerfile: build/run instructions need a /, not :Michael Stapelberg1-2/+2
The image is pulled using tailscale/tailscale:latest, and can be run using tailscale/tailscale Signed-off-by: Michael Stapelberg <michael@stapelberg.de>
2021-10-13docker: install ip6tablesMaisem Ali1-1/+1
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2021-10-13docker: only add tailscale and tailscaled binariesMaisem Ali1-1/+1
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2021-10-12Dockerfile, build_docker: change Docker warningMaya Kaczorowski1-10/+4
Signed-off-by: Maya Kaczorowski <15946341+mayakacz@users.noreply.github.com>
2021-09-02all: bump minimum Go to 1.17Brad Fitzpatrick1-1/+1
In prep for using 1.17 features. Note the go.mod changes are due to: https://golang.org/doc/go1.17#go-command Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-08-14Dockerfile: use alpine:3.14Denton Gentry1-1/+1
golang:1.16-alpine has updated to Alpine 3.14, update the system image to match. Reported by @kubeworm https://twitter.com/kubeworm/status/1426751941519020033 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2021-07-28Dockerfile: remove extra COPY step (#2355)Pratik1-2/+1
Signed-off-by: pratikbalar <pratik@improwised.com>
2021-03-05build_docker.sh, Dockerfile: fix bug with shell quotingSteve Coffman1-3/+11
Fixes #1449 Signed-off-by: Steve Coffman <steve@khanacademy.org>
2021-02-19Switch to Go 1.16.Brad Fitzpatrick1-2/+3
Fixes #1370 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-01-21Add docker build script to inject version informationSteve Coffman1-0/+3
Signed-off-by: Steve Coffman <steve@khanacademy.org>
2021-01-11Dockerfile: add big warning bannerBrad Fitzpatrick1-0/+17
Updates #504
2020-11-11Patch docker to use valid Go versionSean Klein1-1/+1
As documented in the README, tailscale only build with the latest Go version (Go 1.15). As a result, a handful of undefined errors would pop up using an older verison. This patch updates the base image to 1.15, allowing "docker build" to function correctly once more. Signed-off-by: Sean Klein <seanmarionklein@gmail.com>
2020-05-10Dockerfile: install iproute2 in the container image.David Anderson1-1/+1
Fixes #368. Signed-off-by: David Anderson <danderson@tailscale.com>
2020-04-06Dockerfile: add some usage docs, bump to Go 1.14Brad Fitzpatrick1-1/+20
2020-03-06Revert "update CI and everything to Go 1.14."David Anderson1-1/+1
This reverts commit 905fe9f6a227398c9032cfdee46a20cef43c8fa9. We're not quite ready to update the Mac/iOS builds to 1.14.
2020-03-06update CI and everything to Go 1.14.David Anderson1-1/+1
2020-02-18Dockerfile: install iptables in the container.David Anderson1-1/+1
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>
2020-02-14Dockerfile: optimize incremental build a bit, copy all binaries to outputBrad Fitzpatrick1-2/+6
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-02-10init dockerfileJimmy Zelinskie1-0/+15
Signed-off-by: Jimmy Zelinskie <jimmy.zelinskie+git@gmail.com>