This repository was archived by the owner on Sep 26, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1- FROM ubuntu:18 .04
1+ FROM ubuntu:20 .04
22LABEL Description="Rust compile env for Linux + Windows (cross)"
33
44RUN apt update
5- RUN apt install -y build-essential mingw-w64 gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf curl vim wget git
5+ RUN apt install -y build-essential mingw-w64 gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf curl vim wget git unzip
66
77# Get Rust
88RUN curl https://sh.rustup.rs -sSf | bash -s -- --default-toolchain none -y
@@ -28,6 +28,10 @@ ENV CC_x86_64_unknown_linux_musl="gcc"
2828ENV CC_aarch64_unknown_linux_gnu="aarch64-linux-gnu-gcc"
2929ENV CC_armv7_unknown_linux_gnueabhihf="arm-linux-gnueabihf-gcc"
3030
31+ # Install protoc
32+ RUN cd /tmp && wget https://github.com/protocolbuffers/protobuf/releases/download/v21.2/protoc-21.2-linux-x86_64.zip && \
33+ unzip protoc-21.2-linux-x86_64.zip -d /usr/
34+
3135# For windows cross compilation, use a pre-build binary. Remember to set the
3236# SODIUM_LIB_DIR for windows cross compilation
3337RUN cd /opt && wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.17-mingw.tar.gz && \
You can’t perform that action at this time.
0 commit comments