gcal/run.sh

10 lines
258 B
Bash
Raw Normal View History

2024-09-20 20:12:08 +03:30
#!/bin/bash
2024-09-20 20:30:11 +03:30
if [ ! -f ".env" ]; then
if [ -f ".env.example" ]; then
cp ".env.example" ".env"
fi
fi
source .env
docker run -w /srv -v $(pwd):/srv \
-u $(id -u ${USER}):$(id -g ${USER}) -p $PORT:3000 \
-it --rm node:$NODE npm --env-file=.env run index