This commit is contained in:
EthanShoeDev
2025-09-24 04:04:13 -04:00
parent 05b14a428e
commit 89a39fdd63
9 changed files with 455 additions and 62 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM nixos/nix:latest
# Enable flakes and nix-command
RUN mkdir -p /etc/nix && \
echo 'experimental-features = nix-command flakes' > /etc/nix/nix.conf && \
echo 'accept-flake-config = true' >> /etc/nix/nix.conf
WORKDIR /workspace
COPY flake.nix flake.lock .
RUN nix develop .#android-remote
# Pre-populate pnpm store from lockfile only (fast, cacheable)
COPY pnpm-lock.yaml ./
COPY patches/* ./patches/
RUN nix develop .#android-remote -c pnpm fetch
# Now copy full source and link from the store (no network)
COPY . .
RUN nix develop .#android-remote -c pnpm install --offline --frozen-lockfile