index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2020-03-03 14:51:10.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2020-03-03 14:51:10.0 +00:00:00
commit
20b9fd25c98504a0ae68b6a002b5d76ba1b5fc9a [patch]
tree
7261f37dce46b52ef27d9c5fd5d89d29564d481d
parent
ba105e451608f9312350040ccbbe773460fed5a7
download
20b9fd25c98504a0ae68b6a002b5d76ba1b5fc9a.tar.gz

feat: add entrypoint script for alpine image



Diff

 docker/alpine/entrypoint.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/docker/alpine/entrypoint.sh b/docker/alpine/entrypoint.sh
new file mode 100755
index 0000000..4167e74
--- /dev/null
+++ b/docker/alpine/entrypoint.sh
@@ -0,0 +1,10 @@
#!/bin/sh

set -e

# Check if incomming command contains flags.
if [ "${1#-}" != "$1" ]; then
    set -- static-web-server "$@"
fi

exec "$@"