- rustup does not exit for arm on alpine

This commit is contained in:
nicobo 2021-01-18 08:03:07 +01:00
parent 75a738462c
commit 5c302325f7
No known key found for this signature in database
GPG key ID: 2581E71C5FA5285F

View file

@ -32,15 +32,14 @@ RUN apk add --no-cache build-base gcc abuild binutils cmake \
# See https://cryptography.io/en/latest/installation.html#alpine for cryptography dependencies
gcc musl-dev python3-dev libffi-dev libressl-dev \
zip make \
# cargo rust \
# Rust is a requirement to build the 'cryptography' Python module
# At the time of writing this only exists for aarch64 (arm64) and x86_64
# => using the alpine package rather than the "universal" rustup script
# https://forge.rust-lang.org/infra/other-installation-methods.html
cargo rust \
# git required by setuptools-scm during 'pip install'
git
# Rust is a requirement to build the 'cryptography' Python module
# Installs rust using the recommended 'rustup' method (vs apt-get,
# which seems to be less portable / outdated)
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
WORKDIR /usr/src/app
COPY . .