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.
1 parent 6ac93e8 commit 2127a8eCopy full SHA for 2127a8e
test.Dockerfile
@@ -1,12 +1,13 @@
1
FROM alpine:3.16
2
WORKDIR /tmp
3
RUN apk add build-base
4
-RUN printf 'int main(){ exit(getpid()-1); }' > /tmp/is_pid_1.c \
5
- && gcc -w -static -o /is_pid_1 /tmp/is_pid_1.c
+RUN printf '#include <stdio.h>' > /tmp/hello.c \
+ && printf 'int main() { printf("Hello World"); return 0; }' > /tmp/hello.c \
6
+ && gcc -w -static -o /hello /tmp/hello.c
7
8
FROM scratch
-COPY --from=0 /is_pid_1 /is_pid_1
9
+COPY --from=0 /hello /hello
10
COPY ./target/x86_64-unknown-linux-musl/release/wait /wait
11
ENV WAIT_LOGGER_LEVEL=off
-ENV WAIT_COMMAND=/is_pid_1
12
-ENTRYPOINT ["/wait"]
+ENV WAIT_COMMAND=/hello
13
+ENTRYPOINT ["/wait"]
0 commit comments