From 544716a2232720e50c2eb0d8bdb7e64cd638fa15 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 18 Sep 2022 00:56:05 +0200 Subject: [PATCH] with entrypoint --- _examples/actions/docker_action/Dockerfile | 4 +++- _examples/actions/docker_action/script.sh | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 _examples/actions/docker_action/script.sh diff --git a/_examples/actions/docker_action/Dockerfile b/_examples/actions/docker_action/Dockerfile index 88ad6a0..572de73 100644 --- a/_examples/actions/docker_action/Dockerfile +++ b/_examples/actions/docker_action/Dockerfile @@ -3,4 +3,6 @@ FROM debian:bullseye-slim # Kraken relies on this path being the specified path WORKDIR /src/work/ -RUN echo "# README docker" > README.md +COPY entry.sh /src/script.sh + +CMD [ "/src/script.sh" ] diff --git a/_examples/actions/docker_action/script.sh b/_examples/actions/docker_action/script.sh new file mode 100644 index 0000000..11771f4 --- /dev/null +++ b/_examples/actions/docker_action/script.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +set -e + +echo "# README docker" > README.md