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

Docker runtime image #37

Closed
maitredede opened this issue Jan 4, 2018 · 2 comments
Closed

Docker runtime image #37

maitredede opened this issue Jan 4, 2018 · 2 comments

Comments

@maitredede
Copy link

Hi,
Is there a docker runtime image to use as base, to directly serve a "docs" folder from a docker, like for example :

FROM daux/dauxio-runtime
COPY docs/ /var/www/docs/

and then build/deploy/run the container...

Thanks :)

@maitredede
Copy link
Author

maitredede commented Jan 4, 2018

Got it :

FROM daux/daux.io

WORKDIR /daux/
ADD https://github.com/dauxio/daux.io/raw/master/index.php /daux/
COPY docs/ /daux/docs/
COPY global.json /daux/

EXPOSE 8000
ENTRYPOINT [ "php", "-S", "0.0.0.0:8000", "index.php" ]

Edit : final version

@onigoetz
Copy link
Contributor

Thanks,
I will add a documentation for this, and add index.php by default so you don't need to add it manually.

Also know you don't need to override global.json everything you set in docs/config.json will override global.json. (This way you only need to copy docs)

P.S. Cool ton avatar :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants