github.com/rpdict/ponzu@v0.10.1-0.20190226054626-477f29d6bf5e/docs/src/System-Deployment/Docker.md (about)

     1  ## Ponzu Docker build
     2  
     3  Ponzu is distributed as a [docker image](https://hub.docker.com/r/ponzu/ponzu/), 
     4  which aids in ponzu deployment. The Dockerfile in this directory is used by Ponzu 
     5  to generate the docker image which contains the ponzu executable.
     6  
     7  If you are deploying your own Ponzu project, you can write a new Dockerfile that
     8  is based from the `ponzu/ponzu` image of your choice. For example:
     9  ```docker
    10  FROM ponzu/ponzu:latest
    11  
    12  # your project set up ...
    13  # ...
    14  # ...
    15  ```
    16  
    17  ### The following are convenient commands during development of Ponzu core:
    18  
    19  #### Build the docker image. Run from the root of the project.
    20  ```bash
    21  # from the root of ponzu:
    22  docker build -t ponzu-dev
    23  ```
    24  
    25  #### Start the image, share the local directory and pseudo terminal (tty) into for debugging:
    26  ```bash
    27  docker run -v $(pwd):/go/src/github.com/rpdict/ponzu -it ponzu-dev
    28  pwd # will output the go src directory for ponzu
    29  ponzu version # will output the ponzu version
    30  # make an edit on your local and rebuild
    31  go install ./...
    32  ```
    33  
    34  Special thanks to [**@krismeister**](https://github.com/krismeister) for contributing this!