Repository navigation
Zerapi v0.7.0
This release adds Docker support so Zerapi can run easily in local container workflows and Docker Compose stacks.
Added
-
Added a multi-stage
Dockerfile. -
Added a minimal
scratchruntime image. -
Added
.dockerignore. -
Added
/data/data.jsonas the default container data path. -
Added Docker usage examples to the README.
-
Added Docker Compose examples.
-
Published the public Docker image:
nicopiov/zerapi
Notes
Top-level array files infer the resource name from the mounted file name. For example, mounting a file as /data/users.json exposes /users.
Example
docker run --rm -it -p 8080:8080 \
-v "/path/to/users.json:/data/users.json:ro" \
nicopiov/zerapi:v0.7.0 serve --host 0.0.0.0 /data/users.jsonInstall
go install github.com/nicopiov/zerapi@v0.7.0Docker image: nicopiov/zerapi:v0.7.0