Skip to content

Commit c0f0869

Browse files
authored
ci: change the build to use a single copy (#24)
* ci: change the build to use a single copy Signed-off-by: Paul Bastide <[email protected]> * ci: change the build to use a single copy on the dev containerfile Signed-off-by: Paul Bastide <[email protected]> --------- Signed-off-by: Paul Bastide <[email protected]>
1 parent 9c31bba commit c0f0869

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

build/Containerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ WORKDIR /
6666

6767
# Copy the entrypoint script and the binary from the builder stage
6868
COPY ./build/entrypoint.sh /
69-
COPY --from=builder /workspace/bin/power-dra-kubeletplugin /opt/power-dra/bin/
70-
COPY --from=builder /workspace/bin/power-dra-kubeletplugin /usr/local/bin/
71-
72-
RUN chmod +x /opt/power-dra/bin/power-dra-kubeletplugin
69+
COPY --from=builder --chmod=755 /workspace/bin/power-dra-kubeletplugin /opt/power-dra/bin/
7370

7471
ENTRYPOINT ["/entrypoint.sh"]

build/Containerfile-build

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ ENV GOROOT=/usr/local/go
1515
ENV PATH="/root/platform/bin:/opt/power-dra/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:$GOROOT/bin"
1616

1717
COPY ./build/entrypoint.sh /
18-
COPY bin/* /opt/power-dra/bin/
19-
COPY bin/* /usr/local/bin/
20-
21-
RUN chmod +x /opt/power-dra/bin/power-dra-kubeletplugin
18+
COPY --chmod=755 bin/* /opt/power-dra/bin/
2219

2320
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)