Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is this PR about?
This change builds a multi-stage docker image for eelbot-ui, the output images are
frontend
andbackend
. The multi-stage build has 4 phases:staging
(frontend): Start with a Node.js base image, and copies relevant source files.staging
(backend): Start with a Python base image, Installs poetry, and copies relevant source files.development
(frontend): Installs the frontend project in editable mode.development
(backend): Installs the backend project in editable mode.build
(frontend): Build the frontend project into aindex.html
filebuild
(backend): Build the backend project into a wheel fileproduction
(frontend): A clean python-alpine image that installs the build wheel file & serves itproduction
(backend): A clean nginx image that serves theindex.html
file & proxies requests to the backend server.You can create
development
orproduction
images by using the--target
keyword during builds.Additional changes:
configmodule.py
resolves issue Add config support #7link to my config set up