feat: new init env

This commit is contained in:
hamster1963 2024-09-22 17:34:30 +08:00
parent 2d41adcbc6
commit a5f1f40973
4 changed files with 5 additions and 15 deletions

View File

@ -1,5 +1,5 @@
NezhaBaseUrl=http://0.0.0.0:8008
NezhaAuth=5hAY3QX6Nl9B3UOQgB26KdsdS1dsdUdM
NEXT_PUBLIC_NezhaFetchInterval=5000
NezhaBaseUrl=http://1.1.1.1:8008
NezhaAuth=nezha-token
NEXT_PUBLIC_NezhaFetchInterval=2000
NEXT_PUBLIC_ShowFlag=true
NEXT_PUBLIC_DisableCartoon=true
NEXT_PUBLIC_DisableCartoon=false

View File

@ -41,7 +41,7 @@ COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
COPY --from=builder --chown=nextjs:nodejs /.env.example ./.env
USER nextjs

View File

@ -2,7 +2,6 @@ services:
nezha-dash:
container_name: nezha-dash
image: registry.cn-guangzhou.aliyuncs.com/hamster-home/nezha-dash:latest
entrypoint: /app/public/docker-start/docker-entrypoint.sh
volumes:
- ./.env:/app/.env
restart: always

View File

@ -1,9 +0,0 @@
#!/bin/sh
# 如果 .env 文件不存在,则创建一个空的 .env 文件
if [ ! -f /app/.env ]; then
touch /app/.env
fi
# 启动服务
exec "$@"