From fe409b08f662332e3f6f5aaeec98d947313c5ef4 Mon Sep 17 00:00:00 2001 From: Andreas Tsarida Date: Fri, 22 Dec 2023 02:29:26 +0100 Subject: [PATCH] change to yarn --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9910c4d..a368556 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,8 @@ RUN REPO="https://github.com/Stremio/stremio-web.git"; if [ "$BRANCH" == "releas WORKDIR /srv/stremio-web # Workaround to run it twice since if it fails because of timeout issues when building container in github # npm ERR! code ECONNRESET -RUN npm ci --no-audit --no-fund || npm ci -RUN npm run build +RUN yarn install --no-audit --no-optional --mutex network +RUN yarn build RUN wget $(wget -O- https://raw.githubusercontent.com/Stremio/stremio-shell/master/server-url.txt) @@ -38,7 +38,7 @@ LABEL version=${VERSION} WORKDIR /srv/stremio-server COPY --from=builder-web /srv/stremio-web/build ./build COPY --from=builder-web /srv/stremio-web/server.js ./ -RUN npm install -g http-server +RUN yarn global add http-server COPY ./stremio-web-service-run.sh ./ COPY ./extract_certificate.js ./