ito-org / api-backend

Backend for ito
Other
9 stars 5 forks source link

Improve docker image #17

Closed MyDigitalLife closed 4 years ago

MyDigitalLife commented 4 years ago

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.

ChristianRomberg commented 4 years ago

Thanks!