Files

24 lines
514 B
Docker

FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
ENV USER=root
ENV NIX_CONFIG="experimental-features = nix-command flakes"
ENV PATH="/nix/var/nix/profiles/default/bin:${PATH}"
RUN apt-get update && apt-get install -y \
curl \
xz-utils \
ca-certificates \
git \
build-essential \
pkg-config \
rsync \
&& rm -rf /var/lib/apt/lists/*
# Install Nix
RUN curl -L https://nixos.org/nix/install | sh -s -- --daemon
# Install Go
RUN nix profile install nixpkgs#go
WORKDIR /workspace