spa-to-http
spa-to-http copied to clipboard
Is it possible to at a custom command
Is it possible to at a custom command?
For example: command: --port 4001 && /code/env.sh
Sure, like in any docker container
command: sh your.sh && /bin/go-http-server --port 4001
When you don't pass binary and just pass e.g.
command: --port 4001
Docker just concatinates this via space CMD defined in Dockerfile. It has nothing about spa-to-http, just hiw Docker works ;)
Also you can set port via environment, we will have to rework readme to suggest Env, not sure why we did most ecamples as command