What is the purpose of this change? What does it change?
Using docker's multi-stage builds we can build the restic/rest-server
within a golang build environment then create a container for use
(without the build environment) in a second build stage.
The advantages are:
Building the rest-server is predictable in a pristine environment
each time.
Container builds ensure we get the latest rest-server every time.
Was the change discussed in an issue or in the forum before?
What is the purpose of this change? What does it change?
Using docker's multi-stage builds we can build the restic/rest-server within a golang build environment then create a container for use (without the build environment) in a second build stage.
The advantages are:
Was the change discussed in an issue or in the forum before?
Not yet - will create an issue now.https://github.com/restic/rest-server/issues/146
Checklist
NOTE: I will go through this checklist as soon as possible to satisfy all the requirements.
changelog/unreleased/
that describes the changes for our users (template here)gofmt
on the code in all commits