cleanup Dockerfile.dev

This commit is contained in:
Dedy Martadinata Supriyadi 2022-08-01 20:35:13 +07:00 committed by nitnelave
parent 26d3d84de0
commit 2ac47d5c85

View File

@ -1,4 +1,5 @@
FROM rust:1.62-slim-bullseye FROM rust:1.62-slim-bullseye
# Set needed env path # Set needed env path
ENV PATH="/opt/aarch64-linux-musl-cross/:/opt/aarch64-linux-musl-cross/bin/:/opt/x86_64-linux-musl-cross/:/opt/x86_64-linux-musl-cross/bin/:$PATH" ENV PATH="/opt/aarch64-linux-musl-cross/:/opt/aarch64-linux-musl-cross/bin/:/opt/x86_64-linux-musl-cross/:/opt/x86_64-linux-musl-cross/bin/:$PATH"
@ -22,15 +23,6 @@ RUN dpkg --add-architecture arm64 && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
rustup target add aarch64-unknown-linux-gnu rustup target add aarch64-unknown-linux-gnu
### Install build deps armhf build
#RUN dpkg --add-architecture armhf && \
# apt update && \
# apt install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf libc6-armhf-cross libc6-dev-armhf-cross && \
# apt clean && \
# rm -rf /var/lib/apt/lists/*
### add armhf target
#RUN rustup target add rustup target add armv7-unknown-linux-gnueabihf
### Add musl-gcc aarch64 and x86_64 ### Add musl-gcc aarch64 and x86_64
RUN wget -c https://musl.cc/x86_64-linux-musl-cross.tgz && \ RUN wget -c https://musl.cc/x86_64-linux-musl-cross.tgz && \
tar zxf ./x86_64-linux-musl-cross.tgz -C /opt && \ tar zxf ./x86_64-linux-musl-cross.tgz -C /opt && \