forked from librespeed/speedtest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from librespeed/master
update to 5.4.1
- Loading branch information
Showing
13 changed files
with
222 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
FROM php:8-alpine | ||
|
||
# Install extensions | ||
RUN apk add --quiet --no-cache \ | ||
bash \ | ||
apache2 \ | ||
apache2-ssl \ | ||
php83-apache2 \ | ||
php83-ctype \ | ||
php83-openssl \ | ||
freetype-dev \ | ||
libjpeg-turbo-dev \ | ||
libpng-dev \ | ||
libpq-dev \ | ||
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \ | ||
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \ | ||
&& docker-php-ext-install -j$(nproc) gd pdo pdo_mysql pdo_pgsql pgsql \ | ||
&& rm -f /usr/src/php.tar.xz /usr/src/php.tar.xz.asc \ | ||
&& apk del --quiet --no-cache \ | ||
freetype-dev \ | ||
libjpeg-turbo-dev \ | ||
libpng-dev \ | ||
libpq-dev | ||
|
||
RUN ln -sf /dev/stdout /var/log/apache2/access.log && \ | ||
ln -sf /dev/stderr /var/log/apache2/error.log | ||
|
||
# Prepare files and folders | ||
RUN mkdir -p /speedtest/ | ||
|
||
# Copy sources | ||
COPY backend/ /speedtest/backend | ||
|
||
COPY results/*.php /speedtest/results/ | ||
COPY results/*.ttf /speedtest/results/ | ||
|
||
COPY *.js /speedtest/ | ||
COPY favicon.ico /speedtest/ | ||
|
||
COPY docker/servers.json /servers.json | ||
|
||
COPY docker/*.php /speedtest/ | ||
COPY docker/entrypoint.sh / | ||
|
||
# Prepare default environment variables | ||
ENV TITLE=LibreSpeed | ||
ENV MODE=standalone | ||
ENV PASSWORD=password | ||
ENV TELEMETRY=false | ||
ENV ENABLE_ID_OBFUSCATION=false | ||
ENV REDACT_IP_ADDRESSES=false | ||
ENV WEBPORT=80 | ||
|
||
# https://httpd.apache.org/docs/2.4/stopping.html#gracefulstop | ||
STOPSIGNAL SIGWINCH | ||
|
||
# Final touches | ||
EXPOSE 80 | ||
CMD ["bash", "/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -404,6 +404,7 @@ | |
html,body,#loading{ | ||
background:#202020; | ||
color:#F4F4F4; | ||
color-scheme:dark; | ||
} | ||
h1{ | ||
color:#E0E0E0; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.