diff --git a/.env b/.env deleted file mode 100644 index 1f4e47a..0000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -VITE_DEFAULT_PLAYLIST_URL=http://t91rqdjhx.hn-bkt.clouddn.com/playlist.json \ No newline at end of file diff --git a/App.tsx b/App.tsx index 67a0658..260b4f3 100644 --- a/App.tsx +++ b/App.tsx @@ -234,8 +234,8 @@ const App: React.FC = () => { {/* Gradient masks for lyrics fade effect - adjusted to be more subtle */} -
-
+
+
diff --git a/Dockerfile b/Dockerfile index 998d310..e00acbb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,12 @@ # Stage 1: Build the application -FROM node:20-alpine as builder +FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/node:20-alpine as builder WORKDIR /app +# Config Aliyun Mirror for Alpine and Yarn +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \ + yarn config set registry https://registry.npmmirror.com + # Copy package files COPY package.json yarn.lock ./ @@ -18,7 +22,7 @@ COPY . . RUN yarn build # Stage 2: Serve with Nginx -FROM nginx:alpine +FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx:alpine # Remove default nginx static assets RUN rm -rf /usr/share/nginx/html/* diff --git a/components/LyricsPanel.tsx b/components/LyricsPanel.tsx index 1a8b0f6..3819c8f 100644 --- a/components/LyricsPanel.tsx +++ b/components/LyricsPanel.tsx @@ -46,7 +46,7 @@ const LyricsPanel: React.FC = ({ lyrics, currentTime }) => { return (
{lyrics.map((line, index) => { const isActive = index === activeIndex;