This repository has been archived on 2023-02-05. You can view files and clone it, but cannot push or open issues or pull requests.
loki/runner/Dockerfile

19 lines
620 B
Docker
Raw Normal View History

2018-12-11 20:34:04 +00:00
FROM debian:stable-slim
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y upgrade
2018-01-23 00:05:04 +00:00
# Add files to setup GitLab repo
2018-12-11 21:39:22 +00:00
COPY script.deb.sh /tmp/script.deb.sh
COPY pin-gitlab-runner.pref /etc/apt/preferences.d/pin-gitlab-runner.pref
2018-01-23 00:05:04 +00:00
# Install gitlab-runner
2018-12-11 19:25:54 +00:00
RUN apt-get -y install gnupg2 && bash /tmp/script.deb.sh && apt-get -y install gitlab-runner
2018-01-23 00:05:04 +00:00
# Preserve runner's data
VOLUME ["/etc/gitlab-runner", "/home/gitlab-runner"]
# init sets up the environment and launches gitlab-runner
CMD ["run", "--user=gitlab-runner", "--working-directory=/home/gitlab-runner"]
ENTRYPOINT ["/usr/bin/gitlab-runner"]