1515 build-base \
1616 cmake \
1717 npm \
18- python3-dev \
19- yarn && \
18+ python3 && \
19+ npm install -g pnpm typescript && \
2020 echo "*** install your_spotify ***" && \
2121 if [ -z ${YOUR_SPOTIFY_VERSION+x} ]; then \
2222 YOUR_SPOTIFY_VERSION=$(curl -sX GET "https://api.github.com/repos/Yooooomi/your_spotify/releases/latest" \
@@ -36,23 +36,23 @@ RUN \
3636 echo "*** install your_spotify client ***" && \
3737 cd /app/www && \
3838 rm -rf /app/www/apps/server && \
39- yarn --frozen-lockfile && \
39+ CI=true pnpm install --frozen-lockfile && \
4040 cd /app/www/apps/client && \
41- yarn build && \
42- rm -rf /app/www/node_modules && \
43- yarn cache clean
41+ pnpm typecheck && \
42+ pnpm build
4443
4544FROM buildbase AS buildserver
4645
4746RUN \
4847 echo "*** install your_spotify server ***" && \
4948 cd /app/www && \
50- rm -rf /app/www/apps/client && \
51- yarn --frozen-lockfile && \
49+ CI=true pnpm install --frozen-lockfile && \
5250 cd /app/www/apps/server && \
53- yarn build && \
54- rm -rf /app/www/node_modules && \
55- yarn cache clean
51+ rm eslint.config.mts && \
52+ pnpm typecheck && \
53+ pnpm build && \
54+ rm -rf node_modules && \
55+ NODE_ENV=production CI=true pnpm install --production --frozen-lockfile
5656
5757FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.22
5858
@@ -62,18 +62,16 @@ ARG YOUR_SPOTIFY_VERSION
6262LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
6363LABEL maintainer="thespad"
6464
65- ENV HOME=/app
65+ ENV HOME=/app \
66+ NODE_ENV=production
6667
6768COPY --from=buildclient /app/www/apps/client/build/ /app/www/apps/client/build/
6869COPY --from=buildserver /app/www/apps/server/build/ /app/www/apps/server/build/
6970
7071RUN \
7172 echo "**** install runtime packages ****" && \
7273 apk add -U --update --no-cache \
73- nodejs \
74- npm \
75- yarn && \
76- npm install -g serve && \
74+ nodejs && \
7775 printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
7876 echo "**** cleanup ****" && \
7977 rm -rf \
0 commit comments