Files
fressh/Dockerfile
EthanShoeDev 89a39fdd63 flake
2025-09-24 04:04:13 -04:00

20 lines
608 B
Docker

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