Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mimischi/dokku-dockerfile
Deploy applications to Dokku via Dockerfiles outside of the project root
https://github.com/mimischi/dokku-dockerfile
docker dockerfile dokku
Last synced: 3 months ago
JSON representation
Deploy applications to Dokku via Dockerfiles outside of the project root
- Host: GitHub
- URL: https://github.com/mimischi/dokku-dockerfile
- Owner: mimischi
- Created: 2017-09-17T08:15:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-14T06:28:52.000Z (over 1 year ago)
- Last Synced: 2024-08-02T12:50:25.357Z (6 months ago)
- Topics: docker, dockerfile, dokku
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 29
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - mimischi/dokku-dockerfile - Deploy applications to Dokku via Dockerfiles outside of the project root (docker)
README
# dokku-dockerfile
Deploy your applications via `Dockerfile`, while keeping your project root clean of auxiliary files.
## Installation
```
sudo dokku plugin:install https://github.com/mimischi/dokku-dockerfile.git
```## Commands
```
dockerfile:set Set custom path to Dockerfile
dockerfile:unset Unset custom path to Dockerfile
dockerfile:report Report custom path to Dockerfile
```## Usage
Dokku will look for a `Dockerfile` in the project root, when building a
non-buildpack application. Depending on the projects structure, it's desirable
to keep deployment specific files in subdirectories. This plugin points Dokku
to the relative path of the `Dockerfile`.To deploy an application with a directory structure as shown below, one would
use the following command:```
dokku dockerfile:set docker/dokku/Dockerfile
```### Example project structure
```
.
├── app
│ ├── [...]
├── docker
│ ├── dokku
│ │ ├── Dockerfile
│ │ ├── [...]
│ └── local
│ ├── Dockerfile-dev
├── docker-compose.yml
└── README.md
```## Behind the scenes
During the deploy process, this plugin copies the `Dockerfile` specified path to
the projects root, enabling Dokku to build it.