Skip to content
Snippets Groups Projects
Commit 9fe7c832 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

fix(#125): docker: show /root/dynenv content

parent 0b123ed4
Branches
Tags
No related merge requests found
...@@ -8,10 +8,14 @@ FROM --platform=$BUILDPLATFORM rust:1-bullseye as build ...@@ -8,10 +8,14 @@ FROM --platform=$BUILDPLATFORM rust:1-bullseye as build
ARG BUILDPLATFORM ARG BUILDPLATFORM
ARG TARGETPLATFORM ARG TARGETPLATFORM
RUN echo "BUILDPLATFORM = $BUILDPLATFORM"
RUN echo "TARGETPLATFORM = $TARGETPLATFORM"
# We need the target arch triplet in both Debian and rust flavor # We need the target arch triplet in both Debian and rust flavor
RUN echo "DEBIAN_ARCH_TRIPLET='$(dpkg-architecture -A${TARGETPLATFORM#linux/} -qDEB_TARGET_MULTIARCH)'" >>/root/dynenv RUN echo "DEBIAN_ARCH_TRIPLET='$(dpkg-architecture -A${TARGETPLATFORM#linux/} -qDEB_TARGET_MULTIARCH)'" >>/root/dynenv
RUN . /root/dynenv && \ RUN . /root/dynenv && \
echo "RUST_ARCH_TRIPLET='$(echo "$DEBIAN_ARCH_TRIPLET" | sed -E 's/-linux-/-unknown&/')'" >>/root/dynenv echo "RUST_ARCH_TRIPLET='$(echo "$DEBIAN_ARCH_TRIPLET" | sed -E 's/-linux-/-unknown&/')'" >>/root/dynenv
RUN cat /root/dynenv
WORKDIR /root WORKDIR /root
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment