Skip to content

Commit

Permalink
Merge pull request #23 from egzumer/docker
Browse files Browse the repository at this point in the history
Dockerfile refactor, windows script
  • Loading branch information
fagci authored Oct 5, 2023
2 parents dc3aeab + d916ff0 commit d591e72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# hadolint ignore=DL3007
FROM archlinux:latest

WORKDIR /app

COPY . .

RUN set -eux; \
pacman -Syy --noconfirm \
arm-none-eabi-gcc \
Expand All @@ -13,4 +9,8 @@ RUN set -eux; \
git \
python-crcmod

WORKDIR /app

COPY . .

RUN git submodule update --init --recursive
4 changes: 4 additions & 0 deletions compile-with-docker.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
docker build -t uvk5 .
docker run -v %CD%\compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make clean && make && cp firmware* compiled-firmware/"
pause

0 comments on commit d591e72

Please sign in to comment.