mattermost-community / focalboard

Focalboard is an open source, self-hosted alternative to Trello, Notion, and Asana.
https://www.focalboard.com
Other
21.93k stars 1.98k forks source link

Feature Idea: Allow to pass a docker variable to use a directory to build the image #358

Open jespino opened 3 years ago

jespino commented 3 years ago

Summary: Currently the docker file is generated from cloning the focalboard repo, having the posibility of use a path in your filesystem to build it would be a great addition. (This idea comes from the #168 PR)

How important this is to me and why:

Importance: Medium

Use cases:

  1. Some users can want to create the docker file base on its own local source code.
laundmo commented 3 years ago

This is most likely not going to be possible or at least very hacky, as docker doesn't allow conditional usage of the COPY statement.

I think the best solution is to use multistage builds and to target a specific stage depending on what the source should be.