Build bestool first in docker chain
This commit is contained in:
parent
533d01aee6
commit
ca13c0a2c1
|
@ -98,3 +98,4 @@ Release/
|
|||
# configuration file
|
||||
# *.ini
|
||||
log.txt
|
||||
log.txt
|
||||
|
|
|
@ -1,6 +1,15 @@
|
|||
FROM rust:1-alpine3.16 as programmer_build
|
||||
LABEL maintainer="Ben V. Brown <ralim@ralimtek.com>"
|
||||
WORKDIR /usr/src
|
||||
RUN apk add --no-cache git musl-dev
|
||||
RUN git clone https://github.com/Ralim/bestool.git
|
||||
RUN cd /usr/src/bestool/bestool/ && cargo build --release
|
||||
|
||||
FROM alpine:3.16
|
||||
LABEL maintainer="Ben V. Brown <ralim@ralimtek.com>"
|
||||
|
||||
COPY --from=programmer_build /usr/src/bestool/bestool/target/release/bestool /usr/local/bin/bestool
|
||||
|
||||
RUN apk add --no-cache gcc-arm-none-eabi newlib-arm-none-eabi make git bash
|
||||
WORKDIR /src
|
||||
# Git trust
|
||||
|
|
|
@ -3,8 +3,10 @@ services:
|
|||
builder:
|
||||
stdin_open: true
|
||||
tty: true
|
||||
privileged: true
|
||||
build:
|
||||
context: .
|
||||
command: /bin/bash
|
||||
volumes:
|
||||
- ./:/src:Z
|
||||
- /dev/:/dev/
|
||||
|
|
8
log.txt
8
log.txt
|
@ -1,8 +0,0 @@
|
|||
MAKE START: 2022-11-28 10:41:11.124503821
|
||||
make[1]: Entering directory '/home/caoyin/doc/jisheng_code/js_customer_code/shenzhen_meng_23000yp/best2300yp_open_source/out/open_source'
|
||||
-------------------------------
|
||||
REVISION_INFO: 29b195e-dirty:open_source
|
||||
-------------------------------
|
||||
make[1]: Leaving directory '/home/caoyin/doc/jisheng_code/js_customer_code/shenzhen_meng_23000yp/best2300yp_open_source/out/open_source'
|
||||
MAKE END: 2022-11-28 10:41:11.262680315
|
||||
MAKE TIME: 0.14 seconds
|
Loading…
Reference in New Issue