Skip to content

Example on how to deploy golang app to Dokku using dockerfile

Notifications You must be signed in to change notification settings

evzpav/dokku-go-dockerfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

    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!

About

Example on how to deploy golang app to Dokku using dockerfile

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published