Dockerfile 544 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
FROM alpine:latest

ENV SSL_CERT_FILE /etc/ssl/cert.pem

RUN echo '@edge/testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
    && apk upgrade -U --no-cache \
    && apk add -U --no-cache \
        gitlab-runner@edge/testing \
    && adduser -D -S -h /home/gitlab-runner gitlab-runner

11
COPY register-runner entrypoint /usr/local/bin/
12 13

VOLUME ["/etc/gitlab-runner", "/home/gitlab-runner"]
14
ENTRYPOINT ["/usr/local/bin/entrypoint"]
15 16
CMD ["run", "--user=gitlab-runner", "--working-directory=/home/gitlab-runner"]