Dockerfile 529 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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

COPY register-runner /usr/local/bin

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