FROM rustembedded/cross:x86_64-unknown-linux-musl

COPY openssl.sh /
RUN bash /openssl.sh linux-x86_64 x86_64-linux-musl-

ENV OPENSSL_DIR=/openssl \
    OPENSSL_INCLUDE_DIR=/openssl/include \
    OPENSSL_LIB_DIR=/openssl/lib