Skip to content

Commit

Permalink
docker/entrypoint-handling: add demo
Browse files Browse the repository at this point in the history
Signed-off-by: lucasew <lucas59356@gmail.com>
  • Loading branch information
lucasew committed Sep 13, 2023
1 parent 74e388a commit 2158df8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/entrypoint-handling/Dockerfile.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from alpine
copy demoscript /bin/demoscript

cmd /bin/demoscript
4 changes: 4 additions & 0 deletions docker/entrypoint-handling/Dockerfile.entrypoint
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from alpine
copy demoscript /bin/demoscript

entrypoint [ "/bin/demoscript" ]
4 changes: 4 additions & 0 deletions docker/entrypoint-handling/demoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
for param in "$@"; do
echo param $param
done

0 comments on commit 2158df8

Please sign in to comment.