Dockerize Application
Specifications are a bit dependent on the server architecture that is not yet sure.
TBD: Should we provide a docker-compose for local development? There work in !113 (closed) might be useful for this. For production server and client images should be seperated and prebuilt.
Client
- Use build image with Node version >10.
- Use build stage in Dockerfile to create a production build
- Copy production build into clean nginx container or include in server as static files
- Add security headers of files if served with nginx
Server
- Use build image with Node version >10.
- Use build stage in Dockerfile to create a production build
- Use appropriate base image for final container serving the app
- Refactor from
config.json
file to using env variables