d3ed7de33b
This adds a package installation step just before calling the `pulumi` CLI, making it easier to just volume mount a project without needing to have `npm install`ed its contents yet.
10 lines
300 B
Bash
Executable file
10 lines
300 B
Bash
Executable file
#!/bin/bash
|
|
# This is an entrypoint for our Docker image that does some minimal bootstrapping before executing.
|
|
|
|
# First, lazily install packages if required.
|
|
if [ -e package.json ] && [ ! -d node_modules ]; then
|
|
npm install
|
|
fi
|
|
|
|
# Now just pass along all arguments to the Pulumi CLI.
|
|
pulumi "$@"
|