Skip to content
Snippets Groups Projects
Commit bbbbad34 authored by Simon McVittie's avatar Simon McVittie
Browse files

Merge branch 'wip/smcv/sudo-no-fqdn' into 'master'

docker: Make sure sudo is fast

See merge request smcv/flatdeb!46
parents 03bb6bf9 cdddeaf6
No related branches found
Tags v0.20240415.0
No related merge requests found
......@@ -9,7 +9,10 @@ FROM scratch
ADD SYSROOT_TARBALL /
#ifdef NOPASSWD
RUN mkdir -p /etc/sudoers.d && echo "%sudo ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/flatdeb && chmod 0440 /etc/sudoers.d/flatdeb
RUN mkdir -p /etc/sudoers.d \
&& echo "Defaults !fqdn" > /etc/sudoers.d/flatdeb \
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers.d/flatdeb \
&& chmod 0440 /etc/sudoers.d/flatdeb
#endif
#ifdef OS_RELEASE_LABELS
......@@ -17,8 +20,7 @@ OS_RELEASE_LABELS
#endif
#ifdef TOOLBX
LABEL com.github.containers.toolbox="true"
LABEL com.github.debarshiray.toolbox="true"
LABEL com.github.containers.toolbox="true" com.github.debarshiray.toolbox="true"
#endif
CMD ["/bin/bash"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment