mirror of https://github.com/iconify/api.git
15 lines
347 B
Bash
Executable File
15 lines
347 B
Bash
Executable File
#!/bin/bash -e
|
|
# This file is included in the Docker image
|
|
exit_func() {
|
|
echo "SIGTERM detected"
|
|
exit 1
|
|
}
|
|
trap exit_func SIGTERM SIGINT
|
|
|
|
echo "Initializing Iconify API.js..."
|
|
cd /data/iconify-api
|
|
# Only copy files which don't exist in target
|
|
cp -rn /data/config_default/. /data/iconify-api/src/config/
|
|
pnpm build
|
|
node lib/index.js
|