cli icon indicating copy to clipboard operation
cli copied to clipboard

Ability to run build scripts before docker builds

Open asalkeld opened this issue 3 years ago • 3 comments

Describe the solution you'd like

This could be in the project definition (nitric.yaml)

buildScripts:
 - yarn install

Why is this needed? What challenge will it help you solve? Please describe.

There are often commands needed to be run before a docker build, it would be great to have a mechanism to say "please run this command before doing the docker build"

Describe alternatives you've considered

We have to run this manually and document it.

asalkeld avatar Mar 21 '22 02:03 asalkeld

This requires a conversation before we have anything to action.

raksiv avatar Mar 22 '22 23:03 raksiv

Options include exposing a docker file which can be edited Consider hot-reloading Might need a convention which can be overwritten

raksiv avatar Mar 22 '22 23:03 raksiv

Keeping the docker file hidden with defaults should also be available.

raksiv avatar Mar 22 '22 23:03 raksiv

Will be implemented as part of defining custom docker files

tjholm avatar Mar 16 '23 00:03 tjholm