github.com/alloyci/alloy-runner@v1.0.1-0.20180222164613-925503ccafd6/Dockerfile (about)

     1  # This image is used to create bleeding edge docker image and is not compatible with any other image
     2  FROM golang:1.8
     3  
     4  # Copy sources
     5  COPY . /go/src/gitlab.com/gitlab-org/gitlab-runner
     6  WORKDIR /go/src/gitlab.com/gitlab-org/gitlab-runner
     7  
     8  # Fetch tags (to have proper versioning)
     9  RUN git fetch --tags || true
    10  
    11  # Build development version
    12  ENV BUILD_PLATFORMS -osarch=linux/amd64
    13  RUN make && \
    14  	ln -s $(pwd)/out/binaries/alloy-runner-linux-amd64 /usr/bin/alloy-ci-multi-runner && \
    15  	ln -s $(pwd)/out/binaries/alloy-runner-linux-amd64 /usr/bin/alloy-runner
    16  
    17  # Install runner
    18  RUN packaging/root/usr/share/alloy-runner/post-install
    19  
    20  # Preserve runner's data
    21  VOLUME ["/etc/alloy-runner", "/home/alloy-runner"]
    22  
    23  # init sets up the environment and launches gitlab-runner
    24  CMD ["run", "--user=alloy-runner", "--working-directory=/home/alloy-runner"]
    25  ENTRYPOINT ["/usr/bin/alloy-runner"]