Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit 47fc080

Browse files
committed
update dockerfile
1 parent 99b58c8 commit 47fc080

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docker/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM ubuntu:18.04
1+
FROM ubuntu:20.04
22
LABEL Description="Rust compile env for Linux + Windows (cross)"
33

44
RUN 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
88
RUN curl https://sh.rustup.rs -sSf | bash -s -- --default-toolchain none -y
@@ -28,6 +28,10 @@ ENV CC_x86_64_unknown_linux_musl="gcc"
2828
ENV CC_aarch64_unknown_linux_gnu="aarch64-linux-gnu-gcc"
2929
ENV 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
3337
RUN cd /opt && wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.17-mingw.tar.gz && \

0 commit comments

Comments
 (0)