-
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use docker to build linux-x64 glibc
- Loading branch information
1 parent
df02432
commit ba7041d
Showing
2 changed files
with
23 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Dockerfile | ||
|
||
FROM ubuntu:18.04 | ||
|
||
# Install necessary packages | ||
RUN apt-get update && \ | ||
apt-get install -y software-properties-common && \ | ||
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \ | ||
add-apt-repository -y ppa:git-core/ppa && \ | ||
apt-get install -y git gcc-9 g++-9 wget tar gzip rsync ninja-build | ||
|
||
# Use alternative gcc | ||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 && \ | ||
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100 |