ng / docker-entrypoint.sh
epii-1
222222
88f616f
raw
history blame contribute delete
417 Bytes
#!/bin/sh
set -e
# 如果配置目录下没有 env 文件,则复制示例文件
#if [ ! -f /app/config/env ]; then
# cp /app/.env.example /app/config/env
# echo "已创建默认配置文件 /app/config/env,请根据需要修改配置"
#fi
# 创建配置文件软链接
#ln -sf /app/config/env /app/.env
# 启动后端服务
npm run start &
# 启动 Nginx(作为主进程)
exec nginx -g 'daemon off;'