Skip to content
Moritz Wolf edited this page Apr 21, 2021 · 2 revisions

We provide a Docker file to build your own images and run containers. However you first have to set up the project on your own machine to get a working system and when you are sure it is working build the image.

Pipeline

  1. Set up an annotation tool on a local machine as described in Setup. Make sure everything works as intended
  2. Build an image named <name> with docker build --progress=plain -t <imagename> .
  3. Run a container for that image with docker run -p <dockerport>:<local port> -it <imagename>
    <localport> is the port on your machine where the program is running and <dockerport>(default 5000) the one where gunicorn or flask is hosting the server in the container.
    If the docker is running on a server make sure to match localport with an open one to the outside so you can actually access it.

Shortcut for extracting the database from the container:

docker cp <containername>:/src/instance/database.sqlite <a safe place>

Clone this wiki locally