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

Add section on docker to README

This commit is contained in:
Tuschl
2017-07-25 19:19:04 +02:00
parent 7d93a19bfb
commit 95100a64dc

View File

@@ -27,6 +27,23 @@ The IFM uses the following resources:
## installation
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.
### build image
Run the following command from the top source dir:
`docker build -t ifm -f docker/Docker .`
### 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`).
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`
## key bindings
* <kbd>e</kbd> - edit / extract current file
* <kbd>h</kbd><kbd>j</kbd><kbd>k</kbd><kbd>l</kbd> - vim-style navigation (alternative to arrow keys)