25 lines
757 B
Docker
25 lines
757 B
Docker
FROM ubuntu:22.04 as final
|
|
|
|
ARG RUNNER_VERSION=0.2.13
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# needed always
|
|
RUN apt-get update && \
|
|
apt-get install wget curl software-properties-common golang mono-complete -y && \
|
|
cd ~ && curl -sL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh && \
|
|
bash nodesource_setup.sh && apt install nodejs
|
|
|
|
RUN mkdir -p /app && \
|
|
mkdir /config && \
|
|
chmod 777 /config
|
|
|
|
RUN wget "https://gitea.com/gitea/act_runner/releases/download/v${RUNNER_VERSION}/act_runner-${RUNNER_VERSION}-linux-amd64" && \
|
|
mv "act_runner-${RUNNER_VERSION}-linux-amd64" "/app/act_runner" && \
|
|
chmod 777 /app/act_runner
|
|
|
|
COPY "./entrypoint.sh" "/app/entrypoint.sh"
|
|
|
|
RUN chmod -R 777 /app
|
|
|
|
ENTRYPOINT "/app/entrypoint.sh" |