Skip to content

Updating one-click-apps when template build docker container? #1963

Answered by githubsaturn
adamshand asked this question in Q&A
Discussion options

You must be logged in to vote

You're 100% correct.

Dockerfile lines are generally annoying to update. And there are two reasons why they are used:

  1. To override CMD
    CapRover doesn't currently read the command line in the template, so if a template needs to override that, the only way is to use Dockerfile lines. This is due to the fact that Docker doesn't offer docker compose in their APIs. So we have to fake a docker-compose parser to convert docker-compose syntax to Docker API. It's definitely a highly used flag, so PRs are definitely welcomed!

  2. To support apps that don't offer docker images
    Pockerbase is an example. Here is an open thread: pocketbase/pocketbase#92
    It's actually quite simple to set this up, I'm not …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adamshand
Comment options

Answer selected by adamshand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants