From aaa2ec93be2c1125c6cecbdd9cecb9378f158052 Mon Sep 17 00:00:00 2001 From: Ross Patterson Date: Fri, 21 Jun 2024 16:29:04 -0700 Subject: [PATCH] build(docker): Unnecessary entrypoint layer build Use [`COPY --link`](https://docs.docker.com/reference/dockerfile/#copy---link) for files that don't affect other layers. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b9fd0dc2..43c9fdbe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,7 @@ FROM base AS user # from the project. # Put the `ENTRYPOINT` on the `$PATH` -COPY [ "./bin/entrypoint.sh", "/usr/local/bin/" ] +COPY --link [ "./bin/entrypoint.sh", "/usr/local/bin/" ] # Constants that create new build layers: ARG PROJECT_NAMESPACE=rpatterson @@ -80,7 +80,7 @@ FROM base AS devel # least installing development tools. # Put the `ENTRYPOINT` on the `$PATH` -COPY [ "./bin/entrypoint.sh", "/usr/local/bin/" ] +COPY --link [ "./bin/entrypoint.sh", "/usr/local/bin/" ] # Constants that create new build layers: ARG PROJECT_NAMESPACE=rpatterson