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 65d44e54b8
All checks were successful
continuous-integration/drone/push Build is passing
Remove NIX_PATH that points to image’s nixpkgs
Users are encouraged to pin their nixpkgs and avoid <nixpkgs>. This
enforces this by removing nixpkgs from the search path.
2020-10-10 20:53:20 +02:00

19 lines
484 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"]
EXPOSE 3000