Commit Graph

5 Commits

Author SHA1 Message Date
Bret Fisher
563773c980 Changes to node slim to fix Jenkins PR build 2019-08-25 18:24:05 -04:00
Bret Fisher
793e02efc4 update result to node 10 and latest npm packages
The result app was years out of date with node and npm packages, and required multiple changes to use the current supported socket.io and postgres db libs. Minimal changes to server.js to support change in pg syntax. A few minor changes to Dockerfile to improve readability, conform to docker best practices, and change to use npm ci to ensure future builds don't break again due to difference between package and package-lock.
2019-08-25 16:12:01 -04:00
Sebastiaan van Stijn
45788a5f1c
Optimize result image
This patch makes some optimizations in the result service's image;

- switch to `node:8.9-alpine`, which a smaller base image
- use `https://` for the registry
- use `COPY` instead of `ADD`, following best pracice
- cleanup npm cache, and combine steps to reduce image size

These changes bring down the image size from 248MB to 81.2MB

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-01-04 12:26:14 +01:00
Bret Fisher
ddd39f1699 updating node versions and fixing result tests 2017-11-21 13:48:10 -05:00
Ben Firshman
09279e12a8 Rename services to remove "app" 2016-06-18 10:18:53 -07:00