Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed project to always build latest dev version #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -56,8 +57,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 {} \; ; \
Expand All @@ -69,7 +73,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/
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@

# PHPServerMonitor in Docker (Last version 3.5.2)

### Last update : 2020/09/09 . Created repository with version 3.5.2
#### Please open issues on [github](https://github.com/Quentinvarquet/docker-phpservermonitor/issues)
# PHPServerMonitor in Docker (latest [development version](https://github.com/phpservermon/phpservermon/commits/develop))

### PHPServerMonitor

Expand Down Expand Up @@ -35,7 +32,7 @@ cd phpservermonitor/

# Build Docker Image
docker build --no-cache \
--tag "phpservermonitor:3.5.2" \
--tag "phpservermonitor:dev" \
--tag "phpservermonitor:latest" \
--file Dockerfile .
```
Expand Down