Skip to content

Commit

Permalink
Cache build deps to try to reduce build times (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
NChitty authored Mar 29, 2024
1 parent d9fa26c commit ad87852
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lambda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ CMD [ "cargo", "lambda", "watch", "-a", "0.0.0.0", "-p", "8080"]
FROM meal-planner-api-development as meal-planner-api-build

USER 0
RUN cargo lambda build -r -l /tmp
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=./target \
cargo lambda build -r -l /tmp

FROM public.ecr.aws/lambda/provided:al2023 as meal-planner-api

Expand Down

0 comments on commit ad87852

Please sign in to comment.