Docker: fix test for pm3 when building images

This commit is contained in:
Philippe Teuwen committed 2024-12-18 15:29:26 +01:00
1 parent f09705868a
commit a1a9b50d24
28 files changed
+182 -70

No files matched your search

+4 -2
View File
@@ -4,8 +4,10 @@ ENV LANG=C
ARG UART_GID
# dialout group may already exist on another numeric ID than on host
RUN sudo groupadd -g ${UART_GID} mydialout || true
RUN sudo usermod -aG ${UART_GID} linuxbrew
RUN if [ -n "${UART_GID}" ]; then \
sudo groupadd -g ${UART_GID} mydialout || true; \
sudo usermod -aG ${UART_GID} linuxbrew; \
fi
USER linuxbrew
WORKDIR "/home/linuxbrew"