1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-10 10:04:01 +02:00

Move docker files to toplevel

DockerHub automated builds stubbornly refuse to see the files inside the
docker dir. Moving them top level to play nice :-/
This commit is contained in:
Tuschl
2017-07-25 19:26:16 +02:00
parent 95100a64dc
commit b27eb41a03
4 changed files with 5 additions and 5 deletions

View File

@@ -1,3 +1,3 @@
* *
!ifm.php !ifm.php
!docker/apache2-foreground !apache2-foreground

View File

@@ -80,7 +80,7 @@ RUN { \
echo 'error_log = "/var/www/php.log"'; \ echo 'error_log = "/var/www/php.log"'; \
} > $PHP_INI_DIR/conf.d/ZZ_ifm.ini } > $PHP_INI_DIR/conf.d/ZZ_ifm.ini
COPY docker/apache2-foreground /usr/local/bin/ COPY apache2-foreground /usr/local/bin/
COPY ifm.php /var/www/html/index.php COPY ifm.php /var/www/html/index.php

View File

@@ -29,17 +29,17 @@ Just copy the ifm.php to your webspace - thats all :)
## docker ## docker
The docker image is based on alpine 3.5 for a small image footprint, with necessary apache, php and supporting packages installed. The docker image is based on alpine 3.5 for a small image footprint, with necessary apache, php and supporting packages installed and exposes port 80.
### build image ### build image
Run the following command from the top source dir: Run the following command from the top source dir:
`docker build -t ifm -f docker/Docker .` `docker build -t ifm .`
### run image ### run image
The script installed inside the image at `/var/www/html/index.php`. Its default configuration is unchanged, thus it will display the contents of the document root (`/var/www/html`). The script is installed inside the image at `/var/www/html/index.php`. Its default configuration is unchanged, thus it will display the contents of the document root (`/var/www/html`).
Here is an example of how to start up a container with this image: Here is an example of how to start up a container with this image:
`docker run --rm -i -p "9090:80" -v "/data:/var/www/html/data" ifm` `docker run --rm -i -p "9090:80" -v "/data:/var/www/html/data" ifm`