use $(uname -m)

This commit is contained in:
scito
2022-12-29 00:42:13 +01:00
parent c346c085b6
commit 540ae7438d

View File

@@ -7,7 +7,7 @@ COPY . .
ARG run_tests=true ARG run_tests=true
RUN apk add nano \ RUN apk add nano \
&& apk add python3-dev py3-setuptools \ && if [[ "$(uname -m)" == "aarch64" ]]; then apk add python3-dev py3-setuptools zlib-dev jpeg-dev; fi \
&& pip install protobuf qrcode Pillow \ && pip install protobuf qrcode Pillow \
&& if [[ "$run_tests" == "true" ]]; then /extract/run_pytest.sh test_extract_otp_secret_keys_pytest.py -k "not qreader" --relaxed; else echo "Not running tests..."; fi && if [[ "$run_tests" == "true" ]]; then /extract/run_pytest.sh test_extract_otp_secret_keys_pytest.py -k "not qreader" --relaxed; else echo "Not running tests..."; fi