From 79230ec0d615a254f046394bd621ab3d98116f40 Mon Sep 17 00:00:00 2001 From: Darrell Date: Tue, 3 Dec 2024 12:06:19 +0900 Subject: [PATCH] copy only necessary files into container --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c62eebf7..40476670 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,10 @@ FROM nixos/nix:latest AS builder # Set the working directory WORKDIR /usr/src/app -# Copy the source code and flake.nix into the container -COPY . /usr/src/app +# Copy workspace files, and crates directory into the container +COPY flake.nix ./flake.nix +COPY Cargo.toml ./Cargo.toml +COPY crates ./crates # Start the Nix daemon and develop the environment RUN nix-channel --update && \