-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce clutter being installed in Dockerfile
- Loading branch information
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,16 +8,14 @@ RUN cross_debian_arch=$(uname -m | sed 's/x86_64/arm64/' | sed 's/aarch64/amd64/ | |
cross_pkg_arch=$(uname -m | sed 's/aarch64/x86-64/' | sed 's/x86_64/aarch64/'); \ | ||
apt-get update -y && \ | ||
apt-get dist-upgrade -y && \ | ||
apt-get install -y \ | ||
curl wget cmake dwz lsb-release software-properties-common gnupg git clang-16 llvm \ | ||
golang unzip jq gcc-${cross_pkg_arch}-linux-gnu libc6-${cross_debian_arch}-cross && \ | ||
apt-get install -y wget make git clang-16 golang unzip \ | ||
gcc-${cross_pkg_arch}-linux-gnu libc6-${cross_debian_arch}-cross && \ | ||
apt-get clean autoclean && \ | ||
apt-get autoremove --yes | ||
|
||
RUN wget -qO- https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \ | ||
| sh -s -- -b $(go env GOPATH)/bin v1.56.2 | ||
|
||
|
||
# gRPC dependencies | ||
RUN go install google.golang.org/protobuf/cmd/[email protected] | ||
RUN go install google.golang.org/grpc/cmd/[email protected] | ||
|
@@ -27,7 +25,7 @@ RUN | |
PB_FILE="protoc-24.4-linux-$(uname -m | sed 's/aarch64/aarch_64/').zip"; \ | ||
INSTALL_DIR="/usr/local"; \ | ||
\ | ||
curl -LO "$PB_URL/$PB_FILE" \ | ||
wget -q "$PB_URL/$PB_FILE" \ | ||
&& unzip "$PB_FILE" -d "$INSTALL_DIR" 'bin/*' 'include/*' \ | ||
&& chmod +xr "$INSTALL_DIR/bin/protoc" \ | ||
&& find "$INSTALL_DIR/include" -type d -exec chmod +x {} \; \ | ||
|