diff --git a/.env.example b/.env.example index b452c5f..7d597d9 100644 --- a/.env.example +++ b/.env.example @@ -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 \ No newline at end of file +NEXT_PUBLIC_DisableCartoon=false \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 446940c..6a9716c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 832c9e6..03617d7 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -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 diff --git a/public/docker-start/docker-entrypoint.sh b/public/docker-start/docker-entrypoint.sh deleted file mode 100644 index e346dcf..0000000 --- a/public/docker-start/docker-entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -# 如果 .env 文件不存在,则创建一个空的 .env 文件 -if [ ! -f /app/.env ]; then - touch /app/.env -fi - -# 启动服务 -exec "$@"