This repository has been archived on 2021-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
drone-nix-runner/Dockerfile
Simon Bruder d41d680121
All checks were successful
continuous-integration/drone/push Build is passing
Initial commit
2020-10-10 14:11:37 +02:00

20 lines
579 B
Docker

FROM nixos/nix
RUN mv /nix/store/ /nix/store-upstream/
# installed from alpine to not pollute nix store
RUN apk add --no-cache \
git \
git-lfs \
rsync \
su-exec
ARG DRONE_RUNNER_EXEC_VERSION=1.0.0-beta.9
RUN wget -O- https://github.com/drone-runners/drone-runner-exec/releases/download/v${DRONE_RUNNER_EXEC_VERSION}/drone_runner_exec_linux_amd64.tar.gz | tar -C /usr/local/bin -xzvf-
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
ENV DRONE_RUNNER_ENVIRON=NIX_PATH:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs
EXPOSE 3000