Skip to content

Commit d8dc572

Browse files
committed
Permission
1 parent b32d273 commit d8dc572

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ RUN pip install --user PyYAML
4444

4545
# Copy necessary files
4646
COPY board_info register_runner.py /home/$USERNAME/actions-runner/
47+
USER root
4748
RUN chmod +x /home/$USERNAME/actions-runner/register_runner.py /home/$USERNAME/actions-runner/board_info
49+
USER $USERNAME
4850

4951
# Update PATH for the non-root user
5052
ENV PATH="/home/$USERNAME/actions-runner:${PATH}"

0 commit comments

Comments
 (0)