Skip to content

Commit

Permalink
Merge pull request #3 from Rikysonic/master
Browse files Browse the repository at this point in the history
Changed project to always build latest dev version
  • Loading branch information
cn-tools authored Jan 5, 2024
2 parents 5b2ccfc + b0235d5 commit 6cea2e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
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 @@ -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 {} \; ; \
Expand All @@ -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/
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

0 comments on commit 6cea2e8

Please sign in to comment.