From a8a81e1eeac77255704db757f5a2791adcd813fb Mon Sep 17 00:00:00 2001 From: daya0576 Date: Thu, 31 Oct 2024 22:17:21 +0800 Subject: [PATCH] Debug --- Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index d1b6928..6572f39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,14 +8,11 @@ RUN apt-get update && \ apt-get install -y --no-install-recommends \ build-essential libffi-dev libssl-dev curl -# Additional steps for raspberry pi -RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ] || [ "$TARGETPLATFORM" = "linux/arm/v6" ]; then \ - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable; \ - export PATH=/root/.cargo/bin:$PATH; \ - export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig; \ - export OPENSSL_LIB_DIR=/usr/lib/arm-linux-gnueabihf; \ - export OPENSSL_INCLUDE_DIR=/usr/include/arm-linux-gnueabihf/openssl; \ -fi +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable +ENV PATH=/root/.cargo/bin:$PATH +ENV PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig +ENV OPENSSL_LIB_DIR=/usr/lib/arm-linux-gnueabihf +ENV OPENSSL_INCLUDE_DIR=/usr/include/arm-linux-gnueabihf/openssl # Build dependencies COPY requirements.txt ./