spa-to-http icon indicating copy to clipboard operation
spa-to-http copied to clipboard

Is it possible to at a custom command

Open Thullner opened this issue 2 years ago • 1 comments

Is it possible to at a custom command?

For example: command: --port 4001 && /code/env.sh

Thullner avatar Jan 30 '23 16:01 Thullner

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

ivictbor avatar Jan 30 '23 18:01 ivictbor