Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
DiffBrainNet_ShinyApp/docker/documentation.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
9 lines (8 sloc)
741 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Documentation: Dockerizing the app | |
- start Docker engine on the computer | |
- check existing images with `docker images` -> the image, your image is based on, needs to be there | |
- from project folder (one folder above diffbrainnet folder) where the *Dockerfile* needs to be stored: `docker build -t ngerst/diffbrainnet:v6 .` (or the version one wants to build) | |
- run container to try it out with `docker run -d --rm -p 3838:3838 ngerst/diffbrainnet:v6`` | |
- in your browser open *localhost:3838* to see the app | |
- run `docker tag ngerst/diffbrainnet:v6 ngerst/diffbrainnet:latest` to set the latest tag to the current image | |
- run `docker push ngerst/diffbrainnet:v6` and 'docker push ngerst/diffbrainnet:latest` to publish image on *Docker Hub* |