This commit is contained in:
+7
-6
@@ -1,14 +1,15 @@
|
|||||||
# Start with a official gitea runner image based on ubuntu with node installed
|
# Start with a official gitea runner image based on ubuntu with node installed
|
||||||
FROM docker.gitea.com/runner-images:ubuntu-latest-slim
|
FROM docker.gitea.com/runner-images:ubuntu-latest-slim
|
||||||
|
|
||||||
|
# Install system dependencies
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y sudo bash jq xz-utils curl && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install Nix as a multi-user installation
|
# Install Nix as a multi-user installation
|
||||||
RUN curl -L https://nixos.org/nix/install | sh -s -- --daemon
|
RUN curl -L https://nixos.org/nix/install | sh -s -- --daemon
|
||||||
|
ENV PATH="/nix/var/nix/profiles/default/bin:$PATH"
|
||||||
# 2. Set the environment variables globally for all following RUN commands
|
|
||||||
ENV USER=root
|
|
||||||
ENV PATH="/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin"
|
|
||||||
ENV NIX_SSL_CERT_FILE="/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt"
|
|
||||||
ENV NIX_PATH="/nix/var/nix/profiles/per-user/root/channels"
|
|
||||||
|
|
||||||
# Enable flakes and nix-command
|
# Enable flakes and nix-command
|
||||||
RUN mkdir -p /etc/nix && \
|
RUN mkdir -p /etc/nix && \
|
||||||
|
|||||||
Reference in New Issue
Block a user