copy tmate from base in arm and arm64 dockerfiles
This commit is contained in:
@@ -14,7 +14,7 @@ ENV DRONE_PLATFORM_OS linux
|
|||||||
ENV DRONE_PLATFORM_ARCH amd64
|
ENV DRONE_PLATFORM_ARCH amd64
|
||||||
|
|
||||||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
COPY --from=alpine /bin/tmate /bin
|
COPY --from=alpine /bin/tmate /bin/
|
||||||
|
|
||||||
LABEL com.centurylinklabs.watchtower.stop-signal="SIGINT"
|
LABEL com.centurylinklabs.watchtower.stop-signal="SIGINT"
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ RUN tar -xf tmate-2.4.0-static-linux-arm32v7.tar.xz
|
|||||||
RUN mv tmate-2.4.0-static-linux-arm32v7/tmate /bin/
|
RUN mv tmate-2.4.0-static-linux-arm32v7/tmate /bin/
|
||||||
RUN chmod +x /bin/tmate
|
RUN chmod +x /bin/tmate
|
||||||
|
|
||||||
FROM alpine:3
|
FROM scratch
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
ENV GODEBUG netdns=go
|
ENV GODEBUG netdns=go
|
||||||
@@ -14,6 +14,7 @@ ENV DRONE_PLATFORM_OS linux
|
|||||||
ENV DRONE_PLATFORM_ARCH arm
|
ENV DRONE_PLATFORM_ARCH arm
|
||||||
|
|
||||||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
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"
|
LABEL com.centurylinklabs.watchtower.stop-signal="SIGINT"
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ RUN tar -xf tmate-2.4.0-static-linux-arm64v8.tar.xz
|
|||||||
RUN mv tmate-2.4.0-static-linux-arm64v8/tmate /bin/
|
RUN mv tmate-2.4.0-static-linux-arm64v8/tmate /bin/
|
||||||
RUN chmod +x /bin/tmate
|
RUN chmod +x /bin/tmate
|
||||||
|
|
||||||
FROM alpine:3
|
FROM scratch
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
ENV GODEBUG netdns=go
|
ENV GODEBUG netdns=go
|
||||||
@@ -14,6 +14,7 @@ ENV DRONE_PLATFORM_OS linux
|
|||||||
ENV DRONE_PLATFORM_ARCH arm64
|
ENV DRONE_PLATFORM_ARCH arm64
|
||||||
|
|
||||||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
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"
|
LABEL com.centurylinklabs.watchtower.stop-signal="SIGINT"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user