Skip to content

Commit

Permalink
copy only necessary files into container
Browse files Browse the repository at this point in the history
  • Loading branch information
aki-mizu committed Dec 3, 2024
1 parent 096d0ca commit 79230ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 79230ec

Please sign in to comment.