File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 2
2
# Use of this source code is governed by a BSD-style
3
3
# license that can be found in the LICENSE file.
4
4
5
- FROM mcr.microsoft.com/vscode/devcontainers/universal:linux
5
+ FROM mcr.microsoft.com/vscode/devcontainers/universal:linux as builder
6
+ USER root
7
+
8
+ WORKDIR /go/src/tailscale
9
+ COPY . ./
10
+ RUN git clone https://github.com/tailscale/tailscale.git && cd tailscale && \
11
+ git checkout dgentry/dns-copy && go mod download && \
12
+ go install -mod=readonly ./cmd/tailscaled ./cmd/tailscale
13
+ COPY . ./
6
14
15
+ FROM mcr.microsoft.com/vscode/devcontainers/universal:linux
7
16
USER root
8
17
9
18
COPY tailscaled /etc/init.d
19
+ COPY --from=builder /go/bin/tailscaled /usr/sbin/tailscaled
20
+ COPY --from=builder /go/bin/tailscale /usr/bin/tailscale
10
21
11
- RUN apt update && apt install -y curl gpg
12
-
13
- RUN curl https://pkgs.tailscale.com/stable/ubuntu/focal.gpg | apt-key add
14
- RUN curl https://pkgs.tailscale.com/stable/ubuntu/focal.list | tee /etc/apt/sources.list.d/tailscale.list
15
- RUN apt update && \
16
- export DEBIAN_FRONTEND=noninteractive && \
17
- apt -y install --no-install-recommends tailscale
18
22
RUN mkdir -p /var/run/tailscale /var/cache/tailscale /var/lib/tailscale
You can’t perform that action at this time.
0 commit comments