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
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
FROM docker:20.10.21 AS docker-builder
RUN apk add --no-cache bash git ca-certificates curl
RUN adduser -D hived
RUN apk add --no-cache bash git ca-certificates curl sudo
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