-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (23 loc) · 1.17 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM debian:stable-slim
# set the github runner version
ARG RUNNER_VERSION="2.300.2"
WORKDIR /gh-action-runner
# update the base packages and add a non-sudo user
RUN apt-get update -y && apt-get upgrade -y
# install python and the packages the your code depends on along with jq so we can parse JSON
# add additional packages as necessary
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl jq build-essential libssl-dev libffi-dev python3 python3-venv python3-dev python3-pip tini apt-transport-https ca-certificates gnupg2 software-properties-common
# Docker itself
RUN curl -sSL https://get.docker.com/ | sh
# cd into the user directory, download and unzip the github actions runner
RUN curl -O -L https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \
&& tar xzf ./actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz
# install some additional dependencies
RUN ./bin/installdependencies.sh
# copy over the start.sh script
COPY start.sh /start.sh
VOLUME ["/gh-action-runner/_work"]
# set the entrypoint to the start.sh script
ENTRYPOINT ["tini", "-s", "-g", "--"]
CMD [ "/start.sh"]