mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
Merge branch 'master' of https://github.com/qier222/YesPlayMusic
This commit is contained in:
commit
6e737b50ee
4 changed files with 37 additions and 7 deletions
|
|
@ -1,17 +1,20 @@
|
||||||
FROM node:16.13.1-alpine as build
|
FROM node:16.13.1-alpine as build
|
||||||
ENV VUE_APP_NETEASE_API_URL=/api
|
ENV VUE_APP_NETEASE_API_URL=/api
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apk add --no-cache python3 make g++ git
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories &&\
|
||||||
|
apk add --no-cache python3 make g++ git
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN yarn build
|
RUN yarn config set electron_mirror https://npmmirror.com/mirrors/electron/ && \
|
||||||
|
yarn build
|
||||||
|
|
||||||
FROM nginx:1.20.2-alpine as app
|
FROM nginx:1.20.2-alpine as app
|
||||||
|
|
||||||
COPY --from=build /app/package.json /usr/local/lib/
|
COPY --from=build /app/package.json /usr/local/lib/
|
||||||
|
|
||||||
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.14/main libuv \
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories &&\
|
||||||
|
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.14/main libuv \
|
||||||
&& apk add --no-cache --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.14/main nodejs npm \
|
&& apk add --no-cache --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.14/main nodejs npm \
|
||||||
&& npm i -g $(awk -F \" '{if($2=="NeteaseCloudMusicApi") print $2"@"$4}' /usr/local/lib/package.json) \
|
&& npm i -g $(awk -F \" '{if($2=="NeteaseCloudMusicApi") print $2"@"$4}' /usr/local/lib/package.json) \
|
||||||
&& rm -f /usr/local/lib/package.json
|
&& rm -f /usr/local/lib/package.json
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,33 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- ./docker/nginx.conf.example:/etc/nginx/conf.d/default.conf:ro
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
restart: always
|
restart: always
|
||||||
|
depends_on:
|
||||||
|
- UnblockNeteaseMusic
|
||||||
|
environment:
|
||||||
|
- NODE_TLS_REJECT_UNAUTHORIZED=0
|
||||||
|
networks:
|
||||||
|
my_network:
|
||||||
|
|
||||||
|
UnblockNeteaseMusic:
|
||||||
|
image: pan93412/unblock-netease-music-enhanced
|
||||||
|
command: -o kugou kuwo migu bilibili pyncmd -p 80:443 -f 45.127.129.53 -e -
|
||||||
|
# environment:
|
||||||
|
# JSON_LOG: true
|
||||||
|
# LOG_LEVEL: debug
|
||||||
|
networks:
|
||||||
|
my_network:
|
||||||
|
aliases:
|
||||||
|
- music.163.com
|
||||||
|
- interface.music.163.com
|
||||||
|
- interface3.music.163.com
|
||||||
|
- interface.music.163.com.163jiasu.com
|
||||||
|
- interface3.music.163.com.163jiasu.com
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
networks:
|
||||||
|
my_network:
|
||||||
|
driver: bridge
|
||||||
|
|
|
||||||
|
|
@ -75,9 +75,9 @@ export default {
|
||||||
return new Date(item.publishTime).getFullYear();
|
return new Date(item.publishTime).getFullYear();
|
||||||
if (this.subText === 'artist') {
|
if (this.subText === 'artist') {
|
||||||
if (item.artist !== undefined)
|
if (item.artist !== undefined)
|
||||||
return `<a href="/#/artist/${item.artist.id}">${item.artist.name}</a>`;
|
return `<a href="/artist/${item.artist.id}">${item.artist.name}</a>`;
|
||||||
if (item.artists !== undefined)
|
if (item.artists !== undefined)
|
||||||
return `<a href="/#/artist/${item.artists[0].id}">${item.artists[0].name}</a>`;
|
return `<a href="/artist/${item.artists[0].id}">${item.artists[0].name}</a>`;
|
||||||
}
|
}
|
||||||
if (this.subText === 'albumType+releaseYear') {
|
if (this.subText === 'albumType+releaseYear') {
|
||||||
let albumType = item.type;
|
let albumType = item.type;
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ export default {
|
||||||
artistName = mv.creator[0].userName;
|
artistName = mv.creator[0].userName;
|
||||||
artistID = mv.creator[0].userId;
|
artistID = mv.creator[0].userId;
|
||||||
}
|
}
|
||||||
return `<a href="/#/artist/${artistID}">${artistName}</a>`;
|
return `<a href="/artist/${artistID}">${artistName}</a>`;
|
||||||
} else if (this.subtitle === 'publishTime') {
|
} else if (this.subtitle === 'publishTime') {
|
||||||
return mv.publishTime;
|
return mv.publishTime;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue