We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4558fe3 + 4393eac commit 3cecef2Copy full SHA for 3cecef2
1 file changed
Dockerfile
@@ -15,7 +15,9 @@ ARG TARGETOS
15
ARG TARGETARCH
16
ARG TARGETVARIANT
17
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
18
-COPY build/smocker-${TARGETOS}-${TARGETARCH}${TARGETVARIANT} /smocker
+# --chmod: GitHub artifacts don't preserve the executable bit, so the downloaded binary the
19
+# deploy job packages is 0644 — force 0755 here or scratch can't exec it.
20
+COPY --chmod=0755 build/smocker-${TARGETOS}-${TARGETARCH}${TARGETVARIANT} /smocker
21
# Run unprivileged (nobody); ports are >1024 and a mounted persistence dir must be writable by it.
22
USER 65534:65534
23
ENTRYPOINT ["/smocker"]
0 commit comments