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 Jan 1, 2025
1 parent 081c781 commit 21c5787
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- main
- fix/adjust-docker-permissions

jobs:
docker-build:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN apt-get update && apt-get install -y \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
RUN curl -fsSL https://get.docker.com/rootless -o get-docker.sh && \
chmod +x get-docker.sh && \
sh get-docker.sh && \
rm get-docker.sh
Expand All @@ -45,7 +45,7 @@ RUN ./bin/installdependencies.sh
RUN useradd -m -s /bin/bash runner && \
echo "runner ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

RUN getent group docker || groupadd -g 998 docker && \
RUN getent group docker || groupadd -g 999 docker && \
usermod -aG docker runner

RUN chown -R runner:runner /runner
Expand Down

0 comments on commit 21c5787

Please sign in to comment.