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
FROM ubuntu:bionic | |
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | |
###### | |
# Install common dependencies from packages. Versions here are either | |
# sufficient or irrelevant. | |
# | |
# WARNING: DO NOT PUT JAVA APPS HERE! Otherwise they will install default | |
# Ubuntu Java. See Java section below! |
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
apt-get update && apt-get install -y make cmake gcc g++ patch | |
curl -sSL https://github.com/protocolbuffers/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz | tar zx -C /opt/ | |
cd /opt/protobuf-2.5.0 | |
curl -L -O https://gist.githubusercontent.com/liusheng/64aee1b27de037f8b9ccf1873b82c413/raw/118c2fce733a9a62a03281753572a45b6efb8639/protobuf-2.5.0-arm64.patch | |
patch -p1 < protobuf-2.5.0-arm64.patch | |
./configure --disable-shared | |
make | |
ls -l src/protoc |