forked from phpservermon/docker-phpservermonitor
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #3 from Rikysonic/master
Changed project to always build latest dev version
- Loading branch information
Showing
2 changed files
with
12 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,9 @@ FROM php:7.4-apache | |
# MAINTAINER Austin St. Aubin <[email protected]> | ||
|
||
# Build Environment Variables | ||
ENV VERSION 3.5.2 | ||
ENV URL https://github.com/phpservermon/phpservermon/archive/v${VERSION}.tar.gz | ||
# ENV VERSION 3.5.2 | ||
# ENV URL https://github.com/phpservermon/phpservermon/archive/v${VERSION}.tar.gz | ||
ENV URL https://github.com/phpservermon/phpservermon/archive/refs/heads/develop.zip | ||
|
||
# Install Base | ||
RUN apt-get update | ||
|
@@ -57,8 +58,11 @@ VOLUME /sessions | |
RUN set -ex; \ | ||
cd /tmp; \ | ||
rm -rf ${APACHE_DOCUMENT_ROOT}/*; \ | ||
curl --output phpservermonitor.tar.gz --location $URL; \ | ||
tar -xvf phpservermonitor.tar.gz --strip-components=1 -C ${APACHE_DOCUMENT_ROOT}/; \ | ||
curl --output phpservermonitor.zip --location $URL; \ | ||
unzip -d "${APACHE_DOCUMENT_ROOT}" "phpservermonitor.zip"; \ | ||
set -- "${APACHE_DOCUMENT_ROOT}"/*; \ | ||
mv "${APACHE_DOCUMENT_ROOT}"/*/* "${APACHE_DOCUMENT_ROOT}"/*/.[!.]* "${APACHE_DOCUMENT_ROOT}"; \ | ||
rmdir "$@"; \ | ||
cd ${APACHE_DOCUMENT_ROOT} | ||
# chown -R ${APACHE_RUN_USER}:www-data /var/www | ||
# find /var/www -type d -exec chmod 750 {} \; ; \ | ||
|
@@ -70,7 +74,8 @@ RUN touch ${APACHE_DOCUMENT_ROOT}/config.php; \ | |
chmod 0777 ${APACHE_DOCUMENT_ROOT}/config.php | ||
|
||
# Composer install dependencies | ||
RUN composer install --no-dev -o | ||
# RUN composer install --no-dev -o | ||
RUN php composer.phar install | ||
|
||
# Add Entrypoint & Start Commands | ||
COPY docker-entrypoint.sh /usr/local/bin/ | ||
|
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