From d357b771e219ec8a2a670a0bbb473d3a7ee7970f Mon Sep 17 00:00:00 2001 From: mueslipolo <7510557+mueslipolo@users.noreply.github.com> Date: Sun, 1 Aug 2021 19:42:02 -0700 Subject: [PATCH] Correct sample Dockerfile The sample Dockerfile contains an error, the command executing pdi-build-deps is run before copying /app files from the builder stage --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9ed2067..5252516 100644 --- a/README.md +++ b/README.md @@ -139,14 +139,14 @@ FROM package_deps AS devel ### included. RUN apk --no-cache add jq -### Assuming you have a cpanfile.devel file with all your devel-time -### dependencies, you can install it with this -RUN cd /app && pdi-build-deps cpanfile.devel - ### Copy the App dependencies and the app code COPY --from=builder /deps/ /deps/ COPY --from=builder /app/ /app/ +### Assuming you have a cpanfile.devel file with all your devel-time +### dependencies, you can install it with this +RUN cd /app && pdi-build-deps cpanfile.devel + ### And we are done: this "development" image can be generated with: ### ### docker build -t my-app-devel --target devel .