Skip to content

Commit b47cb5f

Browse files
committed
chore: update Dockerfile
1 parent 8ee8339 commit b47cb5f

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

Dockerfile

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
99
LABEL maintainer="thespad"
1010

1111
ENV HOME=/config
12+
# Puppeteer config
13+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
14+
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
1215

1316
RUN \
1417
apk add --no-cache \
18+
chromium \
19+
gcompat \
20+
git \
1521
iputils \
1622
grep \
1723
php84-gd \
@@ -44,17 +50,28 @@ RUN \
4450
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php84/php-fpm.conf && \
4551
echo "*** install speedtest-tracker ***" && \
4652
if [ -z ${SPEEDTEST_TRACKER_VERSION+x} ]; then \
47-
SPEEDTEST_TRACKER_VERSION=$(curl -sX GET "https://api.github.com/repos/alexjustesen/speedtest-tracker/releases/latest" \
53+
SPEEDTEST_TRACKER_VERSION=$(curl -sX GET "https://api.github.com/repos/rizaljamhari/speedtest-tracker/releases/latest" \
4854
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
4955
fi && \
5056
curl -o \
5157
/tmp/speedtest-tracker.tar.gz -L \
52-
"https://github.com/alexjustesen/speedtest-tracker/archive/${SPEEDTEST_TRACKER_VERSION}.tar.gz" && \
58+
"https://github.com/rizaljamhari/speedtest-tracker/archive/${SPEEDTEST_TRACKER_VERSION}.tar.gz" && \
5359
mkdir -p /app/www && \
5460
tar xzf \
5561
/tmp/speedtest-tracker.tar.gz -C \
5662
/app/www/ --strip-components=1 && \
5763
cd /app/www && \
64+
echo "*** install fast-cli ***" && \
65+
mkdir -p /serverdata/fast-cli && \
66+
git clone https://github.com/rizaljamhari/fast-cli.git /serverdata/fast-cli && \
67+
cd /serverdata/fast-cli && \
68+
npm install && \
69+
npm run build && \
70+
npm install -g . && \
71+
cd /app/www && \
72+
echo "*** install cfspeedtest ***" && \
73+
curl -L -o /usr/bin/cfspeedtest "https://github.com/code-inflation/cfspeedtest/releases/latest/download/cfspeedtest-x86_64-unknown-linux-gnu" && \
74+
chmod +x /usr/bin/cfspeedtest && \
5875
composer install \
5976
--no-interaction \
6077
--prefer-dist \

0 commit comments

Comments
 (0)