Setting up start script.
This commit is contained in:
parent
ee70b64b15
commit
a9a1882ed3
|
@ -0,0 +1,3 @@
|
||||||
|
FROM node:18.16.0-alpine3.17
|
||||||
|
COPY . .
|
||||||
|
CMD ["sh", "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
|
Loading…
Reference in New Issue