This Docker image will run an nginx web server, serving
Neuroglancer at the root.
It will also serve images in the Neuroglancer pre-computed chunk format, if
they are provided under /precomputed
(see
neuroglancer-scripts
for converting your data).
You can used the pre-built image from Docker Hub, or build the image yourself (see below):
docker pull ylep/neuroglancer
docker run --name neuroglancer -v <data-volume>:/precomputed:ro -p 8080:80 -d ylep/neuroglancer
You can override the bundled version of the Neuroglancer code with a -v
option:
cd <neuroglancer-repo>
npm run build
docker run --name neuroglancer-dev -v <data-volume>:/precomputed:ro -v "$PWD"/dist/dev:/neuroglancer:ro -p 8081:80 ylep/neuroglancer
npm run build:watch
First, build Neuroglancer:
cd <neuroglancer-repo>
npm run build-min
Then, from this repository, copy the compiled Neuroglancer files, and build the Docker image:
cp -r <neuroglancer-repo>/dist/min neuroglancer
docker build -t neuroglancer-custom .