Previously the BASE_PATH argument was being set during build time, which wouldn't ever work since docker arguments are defined during run time. Also, there wasn't an easy way to set env variables in nginx config files, so I replaced nginx with Node for serving the static files, since it was already being used for the api.
Also with this PR the final image will be much smaller in size (current image is around 68MB, while the previous one was about 100MB)
Previously the BASE_PATH argument was being set during build time, which wouldn't ever work since docker arguments are defined during run time. Also, there wasn't an easy way to set env variables in nginx config files, so I replaced nginx with Node for serving the static files, since it was already being used for the api.
Also with this PR the final image will be much smaller in size (current image is around 68MB, while the previous one was about 100MB)