Coding-Coach / coding-coach-api

62 stars 39 forks source link

Optimize Docker build #15

Closed charlesjliu closed 6 years ago

charlesjliu commented 6 years ago

At the moment, the docker image for the api is generated by copying the src/ files to the docker image, installing all the packages (devDependencies too) and running babel in the container on the src/ files, before running the server.

This is a bloated process that can be streamlined with the help of a preliminary step that generates a builder image: https://medium.com/@guillaumejacquart/node-js-docker-workflow-12febcc0eed8

Acceptance Criteria