source tmate binary from docker image

This commit is contained in:
Brad Rydzewski
2020-11-11 17:24:24 -05:00
parent bb9e46aab0
commit 2457d8d0d7
11 changed files with 127 additions and 26 deletions

View File

@@ -1,7 +1,12 @@
FROM alpine:3.6 as alpine
FROM alpine:3 as alpine
RUN apk add -U --no-cache ca-certificates
FROM alpine:3.6
RUN wget https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz
RUN tar -xf tmate-2.4.0-static-linux-amd64.tar.xz
RUN mv tmate-2.4.0-static-linux-amd64/tmate /bin/
RUN chmod +x /bin/tmate
FROM alpine:3
EXPOSE 3000
ENV GODEBUG netdns=go
@@ -9,6 +14,7 @@ ENV DRONE_PLATFORM_OS linux
ENV DRONE_PLATFORM_ARCH amd64
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=alpine /bin/tmate /bin
LABEL com.centurylinklabs.watchtower.stop-signal="SIGINT"

View File

@@ -1,7 +1,12 @@
FROM alpine:3.6 as alpine
FROM alpine:3 as alpine
RUN apk add -U --no-cache ca-certificates
FROM alpine:3.6
RUN wget https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-arm32v7.tar.xz
RUN tar -xf tmate-2.4.0-static-linux-arm32v7.tar.xz
RUN mv tmate-2.4.0-static-linux-arm32v7/tmate /bin/
RUN chmod +x /bin/tmate
FROM alpine:3
EXPOSE 3000
ENV GODEBUG netdns=go

View File

@@ -1,7 +1,12 @@
FROM alpine:3.6 as alpine
FROM alpine:3 as alpine
RUN apk add -U --no-cache ca-certificates
FROM alpine:3.6
RUN wget https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-arm64v8.tar.xz
RUN tar -xf tmate-2.4.0-static-linux-arm64v8.tar.xz
RUN mv tmate-2.4.0-static-linux-arm64v8/tmate /bin/
RUN chmod +x /bin/tmate
FROM alpine:3
EXPOSE 3000
ENV GODEBUG netdns=go