|
1 |
| -FROM ubuntu:22.04@sha256:965fbcae990b0467ed5657caceaec165018ef44a4d2d46c7cdea80a9dff0d1ea |
| 1 | +FROM ubuntu:22.04@sha256:2b7412e6465c3c7fc5bb21d3e6f1917c167358449fecac8176c6e496e5c1f05f |
2 | 2 |
|
3 | 3 | RUN apt-get update && apt-get install -y sudo git curl apt-transport-https ca-certificates gnupg-agent software-properties-common
|
4 | 4 | ARG USERNAME=root
|
5 | 5 | RUN echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
|
6 | 6 | && chmod 0440 /etc/sudoers.d/$USERNAME
|
7 | 7 |
|
8 | 8 | # Install Golang
|
9 |
| -RUN curl -LO https://dl.google.com/go/go1.21.3.linux-amd64.tar.gz \ |
10 |
| - && tar -C /usr/local -xzf go1.21.3.linux-amd64.tar.gz \ |
11 |
| - && rm go1.21.3.linux-amd64.tar.gz \ |
| 9 | +RUN ARCH="$(dpkg --print-architecture)"; \ |
| 10 | + curl -LO https://dl.google.com/go/go1.21.3.linux-$ARCH.tar.gz \ |
| 11 | + && tar -C /usr/local -xzf go1.21.3.linux-$ARCH.tar.gz \ |
| 12 | + && rm go1.21.3.linux-$ARCH.tar.gz \ |
12 | 13 | && echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile
|
13 | 14 |
|
14 | 15 | # Install Docker
|
15 | 16 | # Install Docker
|
16 | 17 | RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
17 | 18 | RUN echo \
|
18 |
| - "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ |
| 19 | + "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ |
19 | 20 | $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
20 | 21 | RUN apt-get update && apt-get install -y docker-ce docker-ce-cli containerd.io
|
21 | 22 |
|
22 | 23 | # Install kubectl and Minikube
|
23 |
| -RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl \ |
| 24 | +RUN ARCH="$(dpkg --print-architecture)"; \ |
| 25 | + curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/$ARCH/kubectl \ |
24 | 26 | && chmod +x kubectl && mv kubectl /usr/local/bin/ \
|
25 |
| - && curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \ |
26 |
| - && install minikube-linux-amd64 /usr/local/bin/minikube \ |
| 27 | + && curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-$ARCH \ |
| 28 | + && install minikube-linux-$ARCH /usr/local/bin/minikube \ |
27 | 29 | && minikube config set driver docker
|
28 | 30 |
|
29 | 31 | # Expose ports for Minikube and Docker
|
|
0 commit comments