Skip to content

Commit 97a6583

Browse files
committed
feat: npm install on build
1 parent d89c9fe commit 97a6583

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

Dockerfile.ubuntu-1804

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ RUN echo "**** Install Node.js ****" \
8888

8989
# Install GameDig https://docs.linuxgsm.com/requirements/gamedig
9090
RUN echo "**** Install GameDig ****" \
91-
&& npm install -g gamedig
91+
&& npm install -g gamedig@4.3.1
92+
WORKDIR /app/lgsm \
93+
wget -N --no-check-certificate "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${LGSM_GITHUBBRANCH}/package.json" \
94+
&& npm install
9295

9396
WORKDIR /app
9497

Dockerfile.ubuntu-2004

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ RUN echo "**** Install Node.js ****" \
8888

8989
# Install GameDig https://docs.linuxgsm.com/requirements/gamedig
9090
RUN echo "**** Install GameDig ****" \
91-
&& npm install -g gamedig
91+
&& npm install -g gamedig@4.3.1
92+
WORKDIR /app/lgsm \
93+
wget -N --no-check-certificate "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${LGSM_GITHUBBRANCH}/package.json" \
94+
&& npm install
9295

9396
WORKDIR /app
9497

Dockerfile.ubuntu-2204

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ RUN echo "**** Install Node.js ****" \
8989

9090
# Install GameDig https://docs.linuxgsm.com/requirements/gamedig
9191
RUN echo "**** Install GameDig ****" \
92-
&& npm install -g gamedig
92+
&& npm install -g gamedig@4.3.1
93+
WORKDIR /app/lgsm \
94+
wget -N --no-check-certificate "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${LGSM_GITHUBBRANCH}/package.json" \
95+
&& npm install
9396

9497
WORKDIR /app
9598

0 commit comments

Comments
 (0)