Added ENV to Dockerfile
This commit is contained in:
@@ -9,6 +9,8 @@ RUN pacman -Syu --noconfirm \
|
|||||||
rsync \
|
rsync \
|
||||||
&& pacman -Scc --noconfirm
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
|
ENV NIX_CONFIG="experimental-features = nix-command flakes"
|
||||||
|
|
||||||
# 2) Unprivileged user for building Arch packages
|
# 2) Unprivileged user for building Arch packages
|
||||||
RUN useradd -m builder
|
RUN useradd -m builder
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|||||||
1
Makefile
1
Makefile
@@ -36,7 +36,6 @@ test: build
|
|||||||
package-manager-test \
|
package-manager-test \
|
||||||
-c 'git config --global --add safe.directory /src && nix develop .#default --no-write-lock-file -c python3 -m unittest discover -s tests -p "test_*.py"'
|
-c 'git config --global --add safe.directory /src && nix develop .#default --no-write-lock-file -c python3 -m unittest discover -s tests -p "test_*.py"'
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@if [ -n "$$IN_NIX_SHELL" ]; then \
|
@if [ -n "$$IN_NIX_SHELL" ]; then \
|
||||||
echo "Nix shell detected (IN_NIX_SHELL=1). Skipping venv/pip install – handled by Nix flake."; \
|
echo "Nix shell detected (IN_NIX_SHELL=1). Skipping venv/pip install – handled by Nix flake."; \
|
||||||
|
|||||||
Reference in New Issue
Block a user