fix dockerfile
This commit is contained in:
parent
6a2852ced3
commit
6b64c94715
22
Dockerfile
22
Dockerfile
|
@ -1,12 +1,20 @@
|
||||||
FROM docker.io/library/node:alpine as deemix
|
FROM docker.io/library/node:16-alpine as deemix
|
||||||
|
ARG TARGETPLATFORM=linux/amd64
|
||||||
|
|
||||||
RUN apk add git jq
|
RUN apk add --no-cache git jq python3 make gcc musl-dev g++ && \
|
||||||
RUN git clone https://gitlab.com/RemixDev/deemix-gui.git
|
rm -rf /var/lib/apt/lists/*
|
||||||
RUN cd deemix-gui
|
RUN git clone --recurse-submodules https://gitlab.com/RemixDev/deemix-gui.git
|
||||||
RUN git submodule update --init --recursive
|
WORKDIR deemix-gui
|
||||||
|
RUN case "$TARGETPLATFORM" in \
|
||||||
|
"linux/amd64") \
|
||||||
|
jq '.pkg.targets = ["node16-alpine-x64"]' ./server/package.json > tmp-json ;; \
|
||||||
|
"linux/arm64") \
|
||||||
|
jq '.pkg.targets = ["node16-alpine-arm64"]' ./server/package.json > tmp-json ;; \
|
||||||
|
*) \
|
||||||
|
echo "Platform not supported" && exit 1 ;; \
|
||||||
|
esac && \
|
||||||
|
mv tmp-json /deemix-gui/server/package.json
|
||||||
RUN yarn install-all
|
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
|
# 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 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 yarn dist-server
|
||||||
|
|
Loading…
Reference in New Issue