Files
nix-ci-container/Dockerfile
T
julian ab9770a725
Build and Publish Runner Image / build-and-push (push) Failing after 41s
Change base docker image with more stuff preinstalled
2026-06-04 14:10:49 +02:00

19 lines
600 B
Docker

# Start with a official gitea runner image based on ubuntu with node installed
FROM docker.gitea.com/runner-images:ubuntu-latest-slim
# Install Nix as a multi-user installation
RUN curl -L https://nixos.org/nix/install | sh -s -- --daemon
ENV PATH="/nix/var/nix/profiles/default/bin:$PATH"
# Enable flakes and nix-command
RUN mkdir -p /etc/nix && \
echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
# Install devenv (the Nix way, not the apt-get way)
RUN nix profile install nixpkgs#devenv
# Cleanup, otherwise nix panicks
RUN rm -rf /homeless-shelter
CMD ["/bin/bash"]