Add clang-format to docker file
This commit is contained in:
parent
8be2eaf4cb
commit
40227d53c0
33
Dockerfile
33
Dockerfile
|
@ -9,12 +9,13 @@ ENV PATH="/root/.cargo/bin:$PATH"
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
bc \
|
bc \
|
||||||
build-essential \
|
build-essential \
|
||||||
curl \
|
clang-format \
|
||||||
git \
|
curl \
|
||||||
libudev-dev \
|
git \
|
||||||
pkg-config \
|
libudev-dev \
|
||||||
|
pkg-config \
|
||||||
&& curl https://sh.rustup.rs -sSf | bash -s -- -y \
|
&& curl https://sh.rustup.rs -sSf | bash -s -- -y \
|
||||||
&& git clone https://github.com/Ralim/bestool.git \
|
&& git clone https://github.com/Ralim/bestool.git \
|
||||||
&& cd /usr/src/bestool/bestool/ \
|
&& cd /usr/src/bestool/bestool/ \
|
||||||
|
@ -26,19 +27,19 @@ WORKDIR /usr/src
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
bash \
|
bash \
|
||||||
bc \
|
bc \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
curl \
|
curl \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
git \
|
git \
|
||||||
make \
|
make \
|
||||||
tar \
|
tar \
|
||||||
xxd \
|
xxd \
|
||||||
&& git config --global --add safe.directory /src \
|
&& git config --global --add safe.directory /src \
|
||||||
&& mkdir -pv /src \
|
&& mkdir -pv /src \
|
||||||
&& curl \
|
&& curl \
|
||||||
https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-$(arch)-linux.tar.bz2 | tar -xj -C /src/
|
https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-$(arch)-linux.tar.bz2 | tar -xj -C /src/
|
||||||
|
|
||||||
ENV PATH="${PATH}:/src/gcc-arm-none-eabi-9-2019-q4-major/bin"
|
ENV PATH="${PATH}:/src/gcc-arm-none-eabi-9-2019-q4-major/bin"
|
||||||
COPY --from=rust_build /usr/src/bestool/bestool/target/release/bestool /usr/local/bin/bestool
|
COPY --from=rust_build /usr/src/bestool/bestool/target/release/bestool /usr/local/bin/bestool
|
||||||
|
|
Loading…
Reference in New Issue