Skip to content

Commit

Permalink
build(docker): cache downloaded dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Veirt committed Sep 14, 2024
1 parent c68d1bb commit 9c9eda9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ RUN apt-get update && apt-get install -y \
gcc-aarch64-linux-gnu \
&& rm -rf /var/lib/apt/lists/*

# Set up the build environment
WORKDIR /usr/src
RUN USER=root cargo new --bin vesta
WORKDIR /usr/src/vesta
COPY Cargo.toml Cargo.lock ./
RUN cargo build --release

COPY src ./src

COPY docker/installer/linux linux
Expand Down

0 comments on commit 9c9eda9

Please sign in to comment.