Rewrote dockerfile image to run as non-root user.
Moved to FROM scratch for smallest image possible.
Moved host to env vars.
Removed wait for postgres script.
With this image its not possible to just easily docker exec into the container and do same comands. If this is required for development we should add a development dockerfile.
Solved #14
Rewrote dockerfile image to run as non-root user. Moved to FROM scratch for smallest image possible. Moved host to env vars. Removed wait for postgres script.
This image is build based of these instructions: https://medium.com/@chemidy/create-the-smallest-and-secured-golang-docker-image-based-on-scratch-4752223b7324
With this image its not possible to just easily docker exec into the container and do same comands. If this is required for development we should add a development dockerfile.