From f5e7f60bc694c2acf941abd1575fd371ba328ea9 Mon Sep 17 00:00:00 2001 From: BippyMiester Date: Thu, 8 Aug 2024 17:20:27 -0400 Subject: [PATCH] Trying again to install ws package manually --- games/carbon/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/games/carbon/Dockerfile b/games/carbon/Dockerfile index 82cee89..b424061 100644 --- a/games/carbon/Dockerfile +++ b/games/carbon/Dockerfile @@ -43,13 +43,16 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh \ && npm --version # Install Websocket NPM Package -RUN mkdir /node_modules \ +RUN mkdir -p /node_modules/ws /tmp/ws \ && echo $(pwd) \ && whereis npm \ && curl -L $(curl -s https://api.github.com/repos/websockets/ws/releases/latest | jq -r '.zipball_url') -o ws-latest.zip \ && ls -la \ - && unzip ws-latest.zip -d /node_modules \ + && unzip ws-latest.zip -d /tmp/ws \ + && mv /tmp/ws/*/* /node_modules/ws \ && ls -la /node_modules \ + && ls -la /node_modules/ws \ + && rm -rf /tmp/ws \ && echo "Done" \ && useradd -d /home/container -m container