Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion sdbuild/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,13 @@ RUN useradd -m ${USERNAME} \
ENV PATH="/opt/qemu/bin:/opt/crosstool-ng/bin:${PATH}"
ENV LD_PRELOAD=/lib/x86_64-linux-gnu/libudev.so.1

# Register binfmt to allow run ARM elf on x86
RUN update-binfmts --enable qemu-arm
RUN update-binfmts --enable qemu-aarch64

# Switch to non-root user
USER ${USERNAME}
WORKDIR /workspace
ENV USERNAME=${USERNAME}

CMD /bin/bash
CMD /bin/bash