1 files changed, 5 insertions(+), 3 deletions(-)
M README.md
M README.md => README.md +5 -3
@@ 22,13 22,15 @@ The following example Containerfile showcases that.
FROM rakudo-zef:2020.12 AS build
RUN mkdir /app
- COPY . /app
WORKDIR /app
- # Install dependencies
+ # Install deps separately first to not trash the podman cache on every
+ # source change.
+ COPY META6.json .
RUN zef install --deps-only .
- # Precompile app
+ # Now copy and compile the actual app.
+ COPY . /app
RUN raku -c -I. service.raku
# FINAL STAGE #########################