Skip to content

Commit 9fcd7ee

Browse files
authored
Merge pull request containerd#3870 from yankay/fix-nerdctl-full-SHA256SUMS
Fix nerdctl-full shasum fails by move the sha256sum to build-full stage
2 parents 73a4b01 + c6666e3 commit 9fcd7ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,7 @@ RUN echo "" >> /out/share/doc/nerdctl-full/README.md && \
227227
echo "- bin/fuse-overlayfs: [GNU GENERAL PUBLIC LICENSE, Version 2](https://github.com/containers/fuse-overlayfs/blob/${FUSE_OVERLAYFS_VERSION}/COPYING)" >> /out/share/doc/nerdctl-full/README.md && \
228228
echo "- bin/{runc,bypass4netns,bypass4netnsd}: Apache License 2.0, statically linked with libseccomp ([LGPL 2.1](https://github.com/seccomp/libseccomp/blob/main/LICENSE), source code available at https://github.com/seccomp/libseccomp/)" >> /out/share/doc/nerdctl-full/README.md && \
229229
echo "- bin/tini: [MIT License](https://github.com/krallin/tini/blob/${TINI_VERSION}/LICENSE)" >> /out/share/doc/nerdctl-full/README.md && \
230-
echo "- Other files: [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)" >> /out/share/doc/nerdctl-full/README.md && \
231-
(cd /out && find ! -type d | sort | xargs sha256sum > /tmp/SHA256SUMS ) && \
232-
mv /tmp/SHA256SUMS /out/share/doc/nerdctl-full/SHA256SUMS && \
233-
chown -R 0:0 /out
230+
echo "- Other files: [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)" >> /out/share/doc/nerdctl-full/README.md
234231

235232
FROM build-dependencies AS build-full
236233
COPY . /go/src/github.com/containerd/nerdctl
@@ -239,6 +236,9 @@ WORKDIR /go/src/github.com/containerd/nerdctl
239236
RUN BINDIR=/out/bin make binaries install
240237
COPY README.md /out/share/doc/nerdctl/
241238
COPY docs /out/share/doc/nerdctl/docs
239+
RUN (cd /out && find ! -type d | sort | xargs sha256sum > /tmp/SHA256SUMS ) && \
240+
mv /tmp/SHA256SUMS /out/share/doc/nerdctl-full/SHA256SUMS && \
241+
chown -R 0:0 /out
242242

243243
FROM scratch AS out-full
244244
COPY --from=build-full /out /

0 commit comments

Comments
 (0)