Browse Source

docker: remove only subdirectories (which are updated as submodules) from lib to keep picolibc file in its correct place

Signed-off-by: deadprogram <ron@hybridgroup.com>
pull/2421/head
deadprogram 3 years ago
committed by Ron Evans
parent
commit
8f2082df69
  1. 5
      Dockerfile

5
Dockerfile

@ -20,10 +20,9 @@ FROM tinygo-llvm-build AS tinygo-compiler
COPY . /tinygo
# remove submodules directories and re-init them to fix any hard-coded paths
# after copying the tinygo directory in the previous step.
# update submodules
RUN cd /tinygo/ && \
rm -rf ./lib/* && \
rm -rf ./lib/*/ && \
git submodule sync && \
git submodule update --init --recursive --force

Loading…
Cancel
Save