Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
daya0576 committed Oct 31, 2024
1 parent d5c1fe2 commit a8a81e1
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./
Expand Down

0 comments on commit a8a81e1

Please sign in to comment.