Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to at a custom command #6

Open
Thullner opened this issue Jan 30, 2023 · 1 comment
Open

Is it possible to at a custom command #6

Thullner opened this issue Jan 30, 2023 · 1 comment
Assignees

Comments

@Thullner
Copy link

Is it possible to at a custom command?

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

@ivictbor ivictbor self-assigned this Jan 30, 2023
@ivictbor
Copy link
Contributor

ivictbor commented Jan 30, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants