Add Dockerfile optimizations
@ThePrimeagen did these on-stream.
This commit is contained in:
@@ -4,6 +4,15 @@ RUN mkdir -p /app/firmware
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY config/west.yml config/west.yml
|
||||||
|
|
||||||
|
# West Init
|
||||||
|
RUN west init -l config
|
||||||
|
# West Update
|
||||||
|
RUN west update
|
||||||
|
# West Zephyr export
|
||||||
|
RUN west zephyr-export
|
||||||
|
|
||||||
COPY config config
|
COPY config config
|
||||||
COPY bin/build.sh ./
|
COPY bin/build.sh ./
|
||||||
|
|
||||||
|
|||||||
@@ -5,12 +5,6 @@ set -e
|
|||||||
PWD=$(pwd)
|
PWD=$(pwd)
|
||||||
TIMESTAMP=$(date -u +"%Y%m%d%H%M%S")
|
TIMESTAMP=$(date -u +"%Y%m%d%H%M%S")
|
||||||
|
|
||||||
# West Init
|
|
||||||
west init -l config
|
|
||||||
# West Update
|
|
||||||
west update
|
|
||||||
# West Zephyr export
|
|
||||||
west zephyr-export
|
|
||||||
# West Build (left)
|
# West Build (left)
|
||||||
west build -s zmk/app -d build/left -b adv360_left -- -DZMK_CONFIG="${PWD}/config"
|
west build -s zmk/app -d build/left -b adv360_left -- -DZMK_CONFIG="${PWD}/config"
|
||||||
# Adv360 Left DTS File
|
# Adv360 Left DTS File
|
||||||
|
|||||||
Reference in New Issue
Block a user