From afebe13f00bfb365dfe90b0e3d11a1e531fc4403 Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Fri, 11 Jun 2021 16:23:08 +0200 Subject: [PATCH] Update installation.md --- docs/getting-started/installation.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index dd5cd21..8b37aef 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -13,6 +13,31 @@ composer global require beyondcode/expose After that, you are ready to go and can [share your first site](/docs/expose/getting-started/sharing-your-first-site). +## As a docker container + +Expose has a `Dockerfile` already in the source root. +You can build and use it without requiring any extra effort. + +```bash +docker build -t expose . +``` + +Usage: + +```bash +docker run expose +``` + +Examples: + +```bash +docker run expose share http://192.168.2.100 # share a local site +docker run expose serve my-domain.com # start a server +``` + +Now you're ready to go and can [share your first site](/docs/expose/getting-started/sharing-your-first-site). + + ### Extending Expose By default, Expose comes as an executable PHAR file. This allows you to use all Expose features out of the box – without any additional setup required.