forked from clash-verge-rev/clash-verge-rev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
187 additions
and
16 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,37 @@ | ||
FROM debian:trixie | ||
|
||
RUN rm -f /etc/apt/sources.list.d/debian.sources && \ | ||
rm -f /etc/apt/sources.list && \ | ||
echo "deb http://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware" | tee -a /etc/apt/sources.list && \ | ||
echo "deb http://deb.debian.org/debian/ trixie-updates main contrib non-free non-free-firmware" | tee -a /etc/apt/sources.list && \ | ||
echo "deb http://deb.debian.org/debian/ trixie-backports main contrib non-free non-free-firmware" | tee -a /etc/apt/sources.list && \ | ||
echo "deb http://deb.debian.org/debian-security/ trixie-security main contrib non-free non-free-firmware" | tee -a /etc/apt/sources.list | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg \ | ||
build-essential \ | ||
pkg-config && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN dpkg --add-architecture i386 && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
gcc-multilib \ | ||
g++-multilib \ | ||
libgtk-3-dev:i386 \ | ||
libwebkit2gtk-4.1-dev:i386 \ | ||
libappindicator3-dev:i386 \ | ||
librsvg2-dev:i386 \ | ||
patchelf:i386 && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Rust | ||
RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
RUN rustup target add i686-unknown-linux-gnu | ||
ENV PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig:$PKG_CONFIG_PATH | ||
|
||
WORKDIR /app |
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,39 @@ | ||
FROM ubuntu:22.04 | ||
|
||
# change the sources list and install dependencies | ||
RUN rm -f /etc/apt/sources.list && \ | ||
echo "deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu jammy main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu jammy-security main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu jammy-updates main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu jammy-backports main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports jammy main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports jammy-backports main multiverse universe restricted" | tee -a /etc/apt/sources.list | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends ca-certificates curl wget gnupg build-essential pkg-config tar xz-utils && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN dpkg --add-architecture arm64 && \ | ||
apt-get update && \ | ||
apt-get autoremove -y && \ | ||
apt-get install -y --no-install-recommends \ | ||
g++-aarch64-linux-gnu \ | ||
libc6-dev-arm64-cross \ | ||
libgtk-3-dev:arm64 \ | ||
libwebkit2gtk-4.1-dev:arm64 \ | ||
libappindicator3-dev:arm64 \ | ||
librsvg2-dev:arm64 \ | ||
patchelf:arm64 | ||
|
||
# Install Rust | ||
RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
RUN rustup target add aarch64-unknown-linux-gnu | ||
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \ | ||
CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc \ | ||
CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++ \ | ||
PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH \ | ||
PKG_CONFIG_ALLOW_CROSS=1 | ||
|
||
WORKDIR /app |
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,39 @@ | ||
FROM ubuntu:22.04 | ||
|
||
# change the sources list and install dependencies | ||
RUN rm -f /etc/apt/sources.list && \ | ||
echo "deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu jammy main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu jammy-security main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu jammy-updates main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu jammy-backports main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports jammy main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main multiverse universe restricted" | tee -a /etc/apt/sources.list && \ | ||
echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports jammy-backports main multiverse universe restricted" | tee -a /etc/apt/sources.list | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends ca-certificates curl wget gnupg build-essential pkg-config tar xz-utils && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN dpkg --add-architecture armhf && \ | ||
apt-get update && \ | ||
apt-get autoremove -y && \ | ||
apt-get install -y --no-install-recommends \ | ||
g++-arm-linux-gnueabihf \ | ||
libc6-dev-armhf-cross \ | ||
libgtk-3-dev:armhf \ | ||
libwebkit2gtk-4.1-dev:armhf \ | ||
libappindicator3-dev:armhf \ | ||
librsvg2-dev:armhf \ | ||
patchelf:armhf | ||
|
||
# Install Rust | ||
RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
RUN rustup target add armv7-unknown-linux-gnueabihf | ||
ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \ | ||
CC_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc \ | ||
CXX_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-g++ \ | ||
PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig:$PKG_CONFIG_PATH \ | ||
PKG_CONFIG_ALLOW_CROSS=1 | ||
|
||
WORKDIR /app |
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,8 @@ | ||
[target.i686-unknown-linux-gnu] | ||
dockerfile = "../cross_dockerfile/debian/i686/Dockerfile" | ||
|
||
[target.aarch64-unknown-linux-gnu] | ||
dockerfile = "../cross_dockerfile/ubuntu/aarch64/Dockerfile" | ||
|
||
[target.armv7-unknown-linux-gnueabihf] | ||
dockerfile = "../cross_dockerfile/ubuntu/armhf/Dockerfile" |
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