diff --git a/docker/deploy.Dockerfile b/docker/deploy.Dockerfile new file mode 100644 index 0000000..870c3a1 --- /dev/null +++ b/docker/deploy.Dockerfile @@ -0,0 +1,3 @@ +FROM node:18.16.0-alpine3.17 +COPY . . +CMD ["sh", "docker/deploy.sh"] diff --git a/docker/deploy.sh b/docker/deploy.sh new file mode 100644 index 0000000..7c29f08 --- /dev/null +++ b/docker/deploy.sh @@ -0,0 +1,8 @@ +set -e + +npm run deploy + +if [ -n "$KEEP_ALIVE" ]; then + echo "Done! Sleeping indefinitely..." + while true; do sleep 1d; done +fi