File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 11FROM theocf/debian:bookworm
22
3- ENV RUNNER_TOKEN=""
43ARG RUNNER_VERSION="2.328.0"
54
65WORKDIR /runner
76COPY start.sh .
87
9- RUN apt update -y && apt install -y curl python3
8+ RUN apt update -y && apt install -y curl python3 pipx
109
1110RUN curl -o actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz -L https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz
1211
@@ -15,8 +14,12 @@ RUN tar xzf ./actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz
1514RUN /runner/bin/installdependencies.sh
1615
1716# Runner config commands cannot be run by root
18- RUN useradd -m docker
19- RUN chown -R docker /runner
20- USER docker
17+ RUN useradd -m ocf
18+ RUN chown -R ocf /runner
19+ USER ocf
20+
21+ # Since the server is run by a different user, we must install pipx packages under user ocf
22+ RUN pipx install poetry
23+ ENV PATH="/home/ocf/.local/bin:${PATH}"
2124
2225CMD ["./start.sh" ]
You can’t perform that action at this time.
0 commit comments