Skip to content

Commit

Permalink
Add Dockerfile optimizations
Browse files Browse the repository at this point in the history
@ThePrimeagen did these on-stream.
  • Loading branch information
ryanwinchester committed May 21, 2022
1 parent 068b1ff commit 9517b0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ RUN mkdir -p /app/firmware

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 bin/build.sh ./

Expand Down
6 changes: 0 additions & 6 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ set -e
PWD=$(pwd)
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 -s zmk/app -d build/left -b adv360_left -- -DZMK_CONFIG="${PWD}/config"
# Adv360 Left DTS File
Expand Down

0 comments on commit 9517b0c

Please sign in to comment.