Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evzpav/dokku-go-dockerfile

Example on how to deploy golang app to Dokku using dockerfile
https://github.com/evzpav/dokku-go-dockerfile

docker dockerfile dokku golang

Last synced: about 2 months ago
JSON representation

Example on how to deploy golang app to Dokku using dockerfile

Awesome Lists containing this project

README

        

# Dokku Go Dockerfile

Example of Deployment of Golang project via Dokku with Dockerfile. Much faster and controlled deployment

## Dokku will identify and create container for it. Note that env var PORT (server port) is set by Dokku automatically.

### Run locally:
```bash
docker build -t dokku-go-dockerfile .
docker run -e PORT=4000 -d --rm --name dokku-go-dockerfile -p 9090:4000 dokku-go-dockerfile

#To Test:
curl localhost:9090
#Welcome!
```