mirror of
https://github.com/kerberos-io/agent.git
synced 2025-12-24 13:07:58 +08:00
Remove Golang build steps from Dockerfiles for amd64 and arm64
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -16,18 +16,6 @@ RUN apt-get upgrade -y && apt-get update && apt-get install -y --fix-missing --n
|
||||
curl ca-certificates libcurl4-openssl-dev libssl-dev libjpeg62-turbo-dev && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
############################
|
||||
# Build Golang
|
||||
RUN go version
|
||||
RUN ARCH=$(uname -m) && \
|
||||
ARCH=$([ "$(uname -m)" = "armv7l" ] && echo "armv6l" || echo $ARCH) && \
|
||||
ARCH=$([ "$(uname -m)" = "x86_64" ] && echo "amd64" || echo $ARCH) && \
|
||||
ARCH=$([ "$(uname -m)" = "aarch64" ] && echo "arm64" || echo $ARCH) && \
|
||||
wget "https://dl.google.com/go/go1.24.5.linux-$ARCH.tar.gz" && \
|
||||
tar -xvf "go1.24.5.linux-$ARCH.tar.gz" && \
|
||||
rm -rf go1.24.5.linux-$ARCH.tar.gz && \
|
||||
mv go /usr/local
|
||||
|
||||
##############################################################################
|
||||
# Copy all the relevant source code in the Docker image, so we can build this.
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
ARG BASE_IMAGE_VERSION=arm64-ddbe40e
|
||||
FROM kerberos/base:${BASE_IMAGE_VERSION} AS build-machinery
|
||||
LABEL AUTHOR=uug.ai
|
||||
|
||||
ENV GOROOT=/usr/local/go
|
||||
ENV GOPATH=/go
|
||||
ENV PATH=$GOPATH/bin:$GOROOT/bin:/usr/local/lib:$PATH
|
||||
@@ -15,18 +16,6 @@ RUN apt-get upgrade -y && apt-get update && apt-get install -y --fix-missing --n
|
||||
curl ca-certificates libcurl4-openssl-dev libssl-dev libjpeg62-turbo-dev && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
############################
|
||||
# Build Golang
|
||||
|
||||
RUN ARCH=$(uname -m) && \
|
||||
ARCH=$([ "$(uname -m)" = "armv7l" ] && echo "armv6l" || echo $ARCH) && \
|
||||
ARCH=$([ "$(uname -m)" = "x86_64" ] && echo "amd64" || echo $ARCH) && \
|
||||
ARCH=$([ "$(uname -m)" = "aarch64" ] && echo "arm64" || echo $ARCH) && \
|
||||
wget "https://dl.google.com/go/go1.24.5.linux-$ARCH.tar.gz" && \
|
||||
tar -xvf "go1.24.5.linux-$ARCH.tar.gz" && \
|
||||
rm -rf go1.24.5.linux-$ARCH.tar.gz && \
|
||||
mv go /usr/local
|
||||
|
||||
##############################################################################
|
||||
# Copy all the relevant source code in the Docker image, so we can build this.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user