Tag: docker
-
Production-ready Docker file for Golang app
An example of a production-ready multi-stage Docker file for any Golang project. The first stage will build a binary file with the Golang Alpine image. In the second stage, the binary file will be copied from the previous image(golang-alpine) to a new image created from Alpine. So the final image size is small (~5mb alpine…
-
Docker Security Checklist
Use official images. Restrict network/links within containers. Make sure docker daemon REST api is off, and then use traditional UNIX permission checks to Limit access to the control socket. Limit docker daemon permission on host. Run as non-root. Add an extra layer of safety by enabling AppArmor, SELinux, GRSEC, or your fav hardening solution.