Skip to content

Commit

Permalink
fix - adjust docker permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
chaddyc committed Dec 31, 2024
1 parent 5d76b75 commit b3e5a38
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
sh get-docker.sh && \
rm get-docker.sh

# Add an alias for docker to always use sudo
RUN echo 'alias docker="sudo docker"' >> /home/runner/.bashrc && \
echo 'alias docker="sudo docker"' >> /etc/profile

# RUN sed -e 's/Defaults.*env_reset/Defaults env_keep = "HTTP_PROXY HTTPS_PROXY NO_PROXY FTP_PROXY http_proxy https_proxy no_proxy ftp_proxy"/' -i /etc/sudoers
# RUN echo '%sudo ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers

Expand Down Expand Up @@ -55,7 +51,7 @@ RUN useradd -m -s /bin/bash runner && \

# RUN usermod -aG docker runner

RUN chown -R runner:runner /runner
RUN chown -R root:root /runner

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
Expand Down

0 comments on commit b3e5a38

Please sign in to comment.