Skip to content

Commit c0f2fd1

Browse files
committed
fix runner
1 parent a2fcb48 commit c0f2fd1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
FROM theocf/debian:bookworm
22

3-
ENV RUNNER_TOKEN=""
43
ARG RUNNER_VERSION="2.328.0"
54

65
WORKDIR /runner
76
COPY 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

1110
RUN 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
1514
RUN /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

2225
CMD ["./start.sh"]

0 commit comments

Comments
 (0)