😀
Motivated
Programmer & electronics hobbyist all my life.
I've fixed just as many things as I've broken... but I've learned so much in my life.
I hack, therefore I am.
- Ottawa Lake, MI, USA
Pinned Loading
-
docker-xlink-kai
docker-xlink-kai PublicDocker image of the Linux XLink Kai binary, designed to be as small and easy to use as possible.
-
My collection of tips for creating/o...
My collection of tips for creating/organizing a Docker image 1# My Docker Tips
231. When using alpine as a base image, use `apk --no-cache add` for packages... don't ever use `apk update` or `apk upgrade` — this just causes the repo database to be populated and add wasted space to an image. Additionally, if using Debian/Ubuntu, since you have to do a `apt-get update` first before installing, at the end of installation of packages, do a `rm -rf /var/lib/apt/lists/*` to clean up the apt lists.
42. If you're going to add something for one step and never use it again, use && to merge the steps. For instance: `apk --no-cache add git && git clone ${giturl} && apk --no-cache del git`
53. Combine steps, but don't just throw EVERYTHING on one RUN command. It's ugly. If you do combine steps, make use of `\` at the end of a line and `&&` at the beginning of the next line (preferably indented to line up to the commads) to keep things neat.
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.