Skip to content

Commit 998a47d

Browse files
committed
Add DNS and network tools.
1 parent 322a160 commit 998a47d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
1+
# Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved.
22
# Use of this source code is governed by a BSD-style
33
# license that can be found in the LICENSE file.
44

55
FROM mcr.microsoft.com/vscode/devcontainers/universal:linux as builder
66
USER root
77

8+
# Magic DNS in a container where /etc/resolv.conf is a bind mount needed
9+
# extra support, currently on a development branch.
810
WORKDIR /go/src/tailscale
911
COPY . ./
1012
RUN git clone https://github.com/tailscale/tailscale.git && cd tailscale && \
@@ -15,6 +17,7 @@ COPY . ./
1517
FROM mcr.microsoft.com/vscode/devcontainers/universal:linux
1618
USER root
1719

20+
RUN apt-get update && apt-get install -y curl gpg dnsutils
1821
COPY tailscaled /etc/init.d
1922
COPY --from=builder /go/bin/tailscaled /usr/sbin/tailscaled
2023
COPY --from=builder /go/bin/tailscale /usr/bin/tailscale

0 commit comments

Comments
 (0)