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

Revert "Changed project to always build latest dev version" #4

Merged
merged 1 commit into from
Jan 16, 2024
Merged
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: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ 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 URL https://github.com/phpservermon/phpservermon/archive/refs/heads/develop.zip
ENV VERSION 3.5.2
ENV URL https://github.com/phpservermon/phpservermon/archive/v${VERSION}.tar.gz

# Install Base
RUN apt-get update
Expand Down Expand Up @@ -58,11 +57,8 @@ VOLUME /sessions
RUN set -ex; \
cd /tmp; \
rm -rf ${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 "$@"; \
curl --output phpservermonitor.tar.gz --location $URL; \
tar -xvf phpservermonitor.tar.gz --strip-components=1 -C ${APACHE_DOCUMENT_ROOT}/; \
cd ${APACHE_DOCUMENT_ROOT}
# chown -R ${APACHE_RUN_USER}:www-data /var/www
# find /var/www -type d -exec chmod 750 {} \; ; \
Expand All @@ -74,8 +70,7 @@ RUN touch ${APACHE_DOCUMENT_ROOT}/config.php; \
chmod 0777 ${APACHE_DOCUMENT_ROOT}/config.php

# Composer install dependencies
# RUN composer install --no-dev -o
RUN php composer.phar install
RUN composer install --no-dev -o

# Add Entrypoint & Start Commands
COPY docker-entrypoint.sh /usr/local/bin/
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@

# PHPServerMonitor in Docker (latest [development version](https://github.com/phpservermon/phpservermon/commits/develop))
# 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

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

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