Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cometkim/flybook-onbuild

Docker onbuild image for using flybook
https://github.com/cometkim/flybook-onbuild

docker-image documentation

Last synced: 28 days ago
JSON representation

Docker onbuild image for using flybook

Awesome Lists containing this project

README

        

# What is Flybook?
[Flybook](https://flybook.js.org) is a static site generator for documentation.

# How to use this image?
Requirements
* Docker 17.05+ (for multi-stage build)
* package.json (See [here](https://flybook.js.org/basic/configuration.html))
* docs (See [here](https://flybook.js.org/basic/getting-started.html))

When you build from this image, Flaybook will generate static files to `/out`.

Then you can use [multi-stage build](https://docs.docker.com/engine/userguide/eng-image/multistage-build) to create a lightweight image can publish outputs without build environments.

See an example:
```Dockerfile
FROM cometkim/flybook-onbuild:latest AS build-env

FROM nginx:latest
COPY --from=build-env /out /usr/share/nginx/html
```