Skip to content

Build your custom docker image for your WunderGraph application

License

Notifications You must be signed in to change notification settings

wundergraph/docker

Repository files navigation

Tests

Docker

This repository instructs you how to build a docker container for WunderGraph. It's aligned with best practices of the community.

Note: The approach used in this repository assumes that you build your dependencies inside docker. While this a good practice, it's not always practical. For example, if you want to take advantage of the CI cache you need to modify the dockerfile accordingly.

Example

.
└── app/
    ├── .wundergraph/
    │   ├── generated/
    │   ├── operations/
    │   ├── wundergraph.config.ts
    │   ├── wundergraph.server.ts
    │   └── wundergraph.operations.ts
    ├── Dockerfile
    ├── .dockerignore
    ├── tsconfig.json
    └── package.json

Test

# Install your project to generate a lockfile
npm i
# Build the docker image. Set public url to generate a compatible client 
docker build --build-arg wg_public_node_url=https://your-public-url.com \
             -t wundergraph .

Run docker run -p 9991:9991 wundergraph:latest to test your image.

Get dragons

curl -X GET http://localhost:9991/operations/Dragons

About

Build your custom docker image for your WunderGraph application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published