Closed anjannair closed 2 years ago
Could you add a
.dockerignore
file containing.git
and the contents of.gitignore
so unnecessary files aren't copied to the image, and to preventnode_modules
from conflicting if it's in a dirty checkout?
Done too!
@pg9182 I have noticed using node:16.15.0-alpine
instead of node:16.15.0
reduces the final image size from 965MB to 170MB without any performance issues
Should I change that accordingly or should I let it be how it is?
Yeah, do that. I usually use alpine-based images myself.
@pg9182 done!
Also works with podman
in testing.
This PR should fix #71