File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 4
4
5
5
FROM mcr.microsoft.com/vscode/devcontainers/universal:linux as builder
6
6
USER root
7
-
8
- # Magic DNS in a container where /etc/resolv.conf is a bind mount needed
9
- # extra support, currently on a development branch.
10
- WORKDIR /go/src/tailscale
7
+ WORKDIR /app
11
8
COPY . ./
12
- RUN git clone https://github.com/tailscale/tailscale.git && cd tailscale && \
13
- go mod download && \
14
- go install -mod=readonly ./cmd/tailscaled ./cmd/tailscale
9
+ ENV TSFILE=tailscale_1.26.1_amd64.tgz
10
+ RUN mkdir -p binaries && \
11
+ wget https://pkgs.tailscale.com/stable/${TSFILE} && \
12
+ tar xzf ${TSFILE} --strip-components=1 -C binaries
15
13
COPY . ./
16
14
17
15
FROM mcr.microsoft.com/vscode/devcontainers/universal:linux
18
16
USER root
19
17
20
18
RUN apt-get update && apt-get install -y curl gpg dnsutils
21
- COPY tailscaled /etc/init.d
22
- COPY --from=builder /go/bin /tailscaled /usr/sbin/tailscaled
23
- COPY --from=builder /go/bin /tailscale /usr/bin/tailscale
19
+ COPY tailscaled /etc/init.d/tailscaled
20
+ COPY --from=builder /app/binaries /tailscaled /usr/sbin/tailscaled
21
+ COPY --from=builder /app/binaries /tailscale /usr/bin/tailscale
24
22
25
23
RUN mkdir -p /var/run/tailscale /var/cache/tailscale /var/lib/tailscale
You can’t perform that action at this time.
0 commit comments