Setting up start script.

This commit is contained in:
benbierens 2023-04-17 13:58:52 +02:00 committed by Ben Bierens
parent ee70b64b15
commit a9a1882ed3
2 changed files with 11 additions and 0 deletions

3
docker/deploy.Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM node:18.16.0-alpine3.17
COPY . .
CMD ["sh", "docker/deploy.sh"]

8
docker/deploy.sh Normal file
View File

@ -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