From 6895ae5e2c2ce27904199ba92b9c55008dcc5652 Mon Sep 17 00:00:00 2001 From: youegraillot Date: Sat, 9 Sep 2023 13:10:47 +0200 Subject: [PATCH] fix dockerfile --- Dockerfile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8f6f5a8..7783c5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,16 @@ FROM docker.io/library/node:alpine as deemix -RUN apk add git jq && \ - git clone https://gitlab.com/RemixDev/deemix-gui.git && cd deemix-gui && \ - git submodule update --init --recursive && yarn install-all && \ - jq '.pkg.targets = ["node16-alpine-x64"]' ./server/package.json > tmp-json && \ - mv tmp-json /deemix-gui/server/package.json && \ - \ - # Patching deemix: see issue https://github.com/youegraillot/lidarr-on-steroids/issues/63 - sed -i 's/const channelData = await dz.gw.get_page(channelName)/let channelData; try { channelData = await dz.gw.get_page(channelName); } catch (error) { console.error(`Caught error ${error}`); return [];}/' ./server/src/routes/api/get/newReleases.ts && \ - yarn dist-server && mv /deemix-gui/dist/deemix-server /deemix-server +RUN apk add git jq +RUN git clone https://gitlab.com/RemixDev/deemix-gui.git +RUN cd deemix-gui +RUN git submodule update --init --recursive +RUN yarn install-all +RUN jq '.pkg.targets = ["node16-alpine-x64"]' ./server/package.json > tmp-json +RUN mv tmp-json /deemix-gui/server/package.json +# Patching deemix: see issue https://github.com/youegraillot/lidarr-on-steroids/issues/63 +RUN sed -i 's/const channelData = await dz.gw.get_page(channelName)/let channelData; try { channelData = await dz.gw.get_page(channelName); } catch (error) { console.error(`Caught error ${error}`); return [];}/' ./server/src/routes/api/get/newReleases.ts +RUN yarn dist-server +RUN mv /deemix-gui/dist/deemix-server /deemix-server FROM cr.hotio.dev/hotio/lidarr:pr-plugins-1.4.1.3564