Skip to content

Commit

Permalink
tmp dockerfile custom
Browse files Browse the repository at this point in the history
  • Loading branch information
Motok1 committed Jun 6, 2024
1 parent cf717a8 commit d048b42
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions build/package/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
FROM ubuntu:22.04
FROM --platform=linux/amd64 ubuntu:22.04
LABEL maintainer "Motoki TAKENAKA <m.takenaka@ntt.com>"

# 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 \
Expand All @@ -20,8 +14,9 @@ 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
ARG VERSION=v1.3.0-rc

RUN wget https://github.com/nttcom/pola/releases/download/v1.3.0-rc/pola_1.3.0-rc_linux_amd64.tar.gz -O - | tar -zxvf - -C /usr/local/bin

# Add completion
RUN pola completion bash | tee -a /usr/share/bash-completion/completions/pola >/dev/null \
Expand Down

0 comments on commit d048b42

Please sign in to comment.