Skip to content
Snippets Groups Projects

Add sudo to docker-builder image for commands cp and rm

Closed Marcin Sobczyk requested to merge msobczyk/modify_docker_builder_image into develop
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
FROM docker:20.10.21 AS docker-builder
RUN apk add --no-cache bash git ca-certificates curl sudo
RUN adduser -D hived && echo "hived ALL=(ALL) NOPASSWD: /bin/cp,/bin/rm" >> /etc/sudoers
RUN adduser -D hived && echo "hived ALL=(ALL) NOPASSWD:SETENV: /bin/cp,/bin/rm" >> /etc/sudoers
USER hived
WORKDIR /home/hived
\ No newline at end of file
Loading