adamcooke / staytus

💡 An open source solution for publishing the status of your services
http://staytus.co
MIT License
2.17k stars 284 forks source link

Adding docker-compose and alpine based Dockerfile #282

Open niwo opened 5 years ago

niwo commented 5 years ago

Adding docker-compose and alpine based image which separates the app from the database

linuxbandit commented 5 years ago

Looks great! thanks for this. I was going to do the same then I realised someone may have already, thankfully there was you.

Only feedback: I would avoid being root (on line 9 of the Dockerfile)

J0WI commented 4 years ago

The *-dev dependencies can be removed afterwards. Adding libc6-compat is an anti pattern on Alpine Linux. Binaries should be build with musl-libc. An example can be found here: https://github.com/docker-library/redmine/blob/master/Dockerfile-alpine.template