mirror of
https://github.com/agessaman/meshcore-packet-capture.git
synced 2026-04-20 23:23:37 +00:00
24 lines
524 B
Text
24 lines
524 B
Text
FROM ubuntu:22.04
|
|
|
|
# Install dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
curl \
|
|
git \
|
|
xz-utils \
|
|
sudo \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install Nix
|
|
RUN sh <(curl -L https://nixos.org/nix/install) --daemon --no-daemon
|
|
|
|
# Enable flakes
|
|
RUN mkdir -p /root/.config/nix && \
|
|
echo "experimental-features = nix-command flakes" >> /root/.config/nix/nix.conf
|
|
|
|
# Set up environment
|
|
ENV PATH="/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH"
|
|
|
|
WORKDIR /workspace
|
|
|
|
CMD ["/bin/bash"]
|
|
|