Merge pull request #3 from chuckwagoncomputing/sudo

various fixes
This commit is contained in:
ZHoob2004 2023-01-21 19:03:58 -07:00 committed by GitHub
commit 4532cd80c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -24,7 +24,7 @@ FROM ubuntu:22.04 AS actions-runer
COPY --from=builder /opt /opt
COPY --from=builder /build/gcc-arm-none-eabi-9-2020-q2-update/bin /bin
RUN useradd -m docker &&\
RUN useradd -m -g sudo docker &&\
apt-get update -y &&\
DEBIAN_FRONTEND=noninteractive /opt/actions-runner/bin/installdependencies.sh && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
@ -42,7 +42,14 @@ RUN useradd -m docker &&\
xxd \
usbutils \
openocd \
sudo \
ruby-rubygems \
time \
lsb-release \
wget \
&& apt-get autoremove -y && apt-get clean -y &&\
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers &&\
echo 'APT::Get::Assume-Yes "true";' >/etc/apt/apt.conf.d/90forceyes &&\
chown -R docker /opt
WORKDIR /opt