Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
speedtest/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
46 lines (33 sloc)
1.03 KB
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
FROM php:7.4-apache | |
# Install extensions | |
RUN apt-get update && apt-get install -y \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ | |
libpng-dev \ | |
libpq-dev \ | |
&& docker-php-ext-install -j$(nproc) iconv \ | |
&& 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 | |
# 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 environment variabiles defaults | |
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 | |
# Final touches | |
EXPOSE 80 | |
CMD ["bash", "/entrypoint.sh"] |