From 171c3d5c5fe1e9557a7f81710cf6f8c62c04cf12 Mon Sep 17 00:00:00 2001 From: Atsushi Watanabe Date: Tue, 16 Jul 2024 18:17:28 +0900 Subject: [PATCH] Install gh by apk (#86) --- Dockerfile | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index d39aa10..09a79a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,6 @@ ARG ALPINE_VERSION=3.17 -# ======================================== -FROM alpine:${ALPINE_VERSION} as gh-downloader - -RUN wget https://github.com/cli/cli/releases/download/v2.29.0/gh_2.29.0_linux_amd64.tar.gz -O - \ - | tar xzfv - \ - && mv gh_* gh - # ======================================== FROM alpine:${ALPINE_VERSION} ARG ALPINE_VERSION=3.17 @@ -30,6 +23,7 @@ RUN apk add --no-cache \ curl \ findutils \ git \ + github-cli \ py3-pip \ py3-rosdep \ py3-rosinstall-generator \ @@ -42,10 +36,6 @@ RUN rosdep init \ && sed -i -e 's|ros/rosdistro/master|alpine-ros/rosdistro/alpine-custom-apk|' \ /etc/ros/rosdep/sources.list.d/20-default.list -# TODO: use `apk add --no-cache gh` after dropping Melodic -COPY --from=gh-downloader /gh/bin/gh /usr/local/bin/ -RUN gh --version - ENV HOME="/root" ARG ROS_DISTRO="noetic"