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 8ed3bfc
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions build/package/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
FROM ubuntu:22.04
FROM FROM --platform=linux/amd64 ubuntu:22.04
LABEL maintainer "Motoki TAKENAKA <[email protected]>"

# 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 @@ -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 \
Expand Down

0 comments on commit 8ed3bfc

Please sign in to comment.