wildcard-dns-server icon indicating copy to clipboard operation
wildcard-dns-server copied to clipboard

Create the smaller image based on Alpine Linux 3.8

Open okkyhtf opened this issue 7 years ago • 3 comments

Hi, I found your software very handy for demo with my customers without any need for Internet (nip.io). But the final image size is very big (711 MB). I tried using Alpine Linux 3.8 instead as the base image and resulting to a smaller image (105 MB). I took the liberty to push my image (based on your repo) to https://hub.docker.com/r/okkyhtf/wildcard-dns-server/ for testing.

okkyhtf avatar Aug 30 '18 07:08 okkyhtf

It is regarded as bad practice to run containers as root. Can you not run it is as root?

GrahamDumpleton avatar Aug 31 '18 04:08 GrahamDumpleton

Also rather than replace existing Dockerfile, create it as Dockerfile.alpine so people have a choice.

GrahamDumpleton avatar Aug 31 '18 04:08 GrahamDumpleton

I have reverted the original Dockerfile and move my Dockerfile to Dockerfile.alpine as you suggested. I also add a non-root user 1001 to run the server. Please have a look at this commit 9cd06cfa1ab7fd203cdeeb37c52222ce7bdd5b11

okkyhtf avatar Aug 31 '18 06:08 okkyhtf