From f140fdd21a11a427f510c02e1f979e5ee03c3116 Mon Sep 17 00:00:00 2001 From: Timo Furrer <tfurrer@gitlab.com> Date: Thu, 8 Feb 2024 12:46:00 +0100 Subject: [PATCH] Use COPY with chmod instead of separate RUN --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 35d9d0a..3444329 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,8 +23,7 @@ RUN curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opent WORKDIR / -COPY src/gitlab-tofu.sh /usr/bin/gitlab-tofu -RUN chmod +x /usr/bin/gitlab-tofu +COPY --chmod=755 src/gitlab-tofu.sh /usr/bin/gitlab-tofu # Override ENTRYPOINT ENTRYPOINT [] -- GitLab