mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-11 06:12:51 +00:00
flake
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user