Skip to content

Commit

Permalink
build(docker): Unnecessary entrypoint layer build
Browse files Browse the repository at this point in the history
Use [`COPY --link`](https://docs.docker.com/reference/dockerfile/#copy---link) for files
that don't affect other layers.
  • Loading branch information
rpatterson committed Jun 22, 2024
1 parent 0de7f8c commit aaa2ec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aaa2ec9

Please sign in to comment.