microsoft / ogc-api-fast-features

Fast API server implementation of the OGC API: Features specification
MIT License
41 stars 10 forks source link

Dockerfile enhancements #19

Open JBurkinshaw opened 3 years ago

JBurkinshaw commented 3 years ago

Update oaff/testing/Dockerfile to benefit from a multistage build and decrease time taken for tests to run. Explanation from @cuttlefish in this PR:

The testing Dockerfile seems to inherit from the main image, then install a bunch of dependencies. That'll be pretty slow. All of the test requirements will need to be installed every time a single file changes in the base image. A multistage build would be a lot faster, but I'm not sure how much time you have to put into this.

It is also worth considering a multistage build in /Dockerfile: