Readd missing cargo setup for armv7. Thanks to @dani-garcia!

This commit is contained in:
Robin Schneider
2019-12-31 15:49:22 +01:00
parent 078b21db85
commit 1698b43f9b
3 changed files with 34 additions and 0 deletions

View File

@@ -135,6 +135,18 @@ RUN apt-get update \
ENV CARGO_HOME "/root/.cargo"
ENV USER "root"
{% elif "armv7" in target_file %}
RUN apt-get update \
&& apt-get install -y \
--no-install-recommends \
gcc-arm-linux-gnueabihf \
&& mkdir -p ~/.cargo \
&& echo '[target.armv7-unknown-linux-gnueabihf]' >> ~/.cargo/config \
&& echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config
ENV CARGO_HOME "/root/.cargo"
ENV USER "root"
{% endif %}
{% if "mysql" in target_file %}
# Install MySQL package