From 8ed3bfc1d3107de79d4953e59d396de8b6435142 Mon Sep 17 00:00:00 2001 From: Motok1 Date: Thu, 6 Jun 2024 10:47:52 +0000 Subject: [PATCH] tmp dockerfile custom --- build/package/Dockerfile | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/build/package/Dockerfile b/build/package/Dockerfile index d73edde..90c107e 100644 --- a/build/package/Dockerfile +++ b/build/package/Dockerfile @@ -1,15 +1,9 @@ -FROM ubuntu:22.04 +FROM FROM --platform=linux/amd64 ubuntu:22.04 LABEL maintainer "Motoki TAKENAKA " # Install packages RUN apt-get update \ - && apt-get install -y bash-completion curl iproute2 - -# Setup Go 1.22.2 -RUN curl -o ~/go1.22.2.linux-amd64.tar.gz -LO https://go.dev/dl/go1.22.2.linux-amd64.tar.gz \ - && rm -rf /usr/local/go \ - && tar -C /usr/local -xzf ~/go1.22.2.linux-amd64.tar.gz \ - && echo "export PATH=$PATH:/usr/local/go/bin" > ~/.bashrc + && apt-get install -y bash-completion curl iproute2 wget # Enable Completion RUN echo "" >> ~/.bashrc \ @@ -19,9 +13,8 @@ RUN echo "" >> ~/.bashrc \ # Install Pola SHELL ["/bin/bash", "-l", "-c"] - -ENV GOBIN /usr/local/go/bin -RUN go install github.com/nttcom/pola/cmd/...@latest +RUN wget https://github.com/nttcom/pola/releases/download/v1.3.0-rc/pola_1.3.0-rc_linux_amd64.tar.gz \ + -O - | tar xvf - -C /usr/local/bin/ # Add completion RUN pola completion bash | tee -a /usr/share/bash-completion/completions/pola >/dev/null \