mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-09 17:46:31 +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:
@@ -1,3 +1,3 @@
|
||||
*
|
||||
!ifm.php
|
||||
!docker/apache2-foreground
|
||||
!apache2-foreground
|
||||
|
@@ -80,7 +80,7 @@ RUN { \
|
||||
echo 'error_log = "/var/www/php.log"'; \
|
||||
} > $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
|
||||
|
@@ -29,17 +29,17 @@ Just copy the ifm.php to your webspace - thats all :)
|
||||
|
||||
## 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
|
||||
|
||||
Run the following command from the top source dir:
|
||||
|
||||
`docker build -t ifm -f docker/Docker .`
|
||||
`docker build -t ifm .`
|
||||
|
||||
### 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:
|
||||
`docker run --rm -i -p "9090:80" -v "/data:/var/www/html/data" ifm`
|
||||
|
Reference in New Issue
Block a user