icy-furniture-17516
03/16/2023, 11:09 AMkind: Module
name: ui
type: container
dockerfile: "${command.params contains 'dev' ? 'Dockerfile.dev' : 'Dockerfile'}"
bright-policeman-43626
03/16/2023, 5:56 PMicy-furniture-17516
03/17/2023, 8:05 AMbright-policeman-43626
03/17/2023, 9:49 AMicy-furniture-17516
03/17/2023, 10:24 AMbright-policeman-43626
03/17/2023, 12:33 PMaverage-painter-87026
03/17/2023, 2:34 PMexclude
files when building a service's container, that are `include`d in the devMode sync, rather than maintaining duplicate Dockerfiles just for dev mode with the source code stripped out. I'm not sure that's possible/desirable though so this is a nice workaroundicy-furniture-17516
03/17/2023, 4:02 PMyarn serve
while in prod we use a multistage docker build to build the static assets, and copy them over to a final image where nginx will pick them upquaint-dress-831
03/20/2023, 1:08 PMicy-furniture-17516
03/20/2023, 2:48 PMaverage-painter-87026
03/20/2023, 4:36 PMchilly-gigabyte-83853
03/23/2023, 9:43 AMbuild.targetImage
.
We start in devMode a command that runs concurrently, which runs swc
in watch mode for fast rebuilding and nodemon to restart the node server (I am assuming you are running a node app here).
The dev command and devMode are getting a revamp in the upcoming 0.13 release and will also allow an interactive way of rebuilding the container if needed, but I'd need to double check for details before making promises. 🙂icy-furniture-17516
03/23/2023, 10:43 AMmode: "${command.params contains 'dev' && (command.params.dev contains 'mymodule' || command.params.dev contains '*' || command.params.dev.length == 0) ? 'dev' : 'prod'}"
quaint-dress-831
03/24/2023, 2:24 PMalert-helicopter-61082
03/24/2023, 8:53 PMicy-furniture-17516
03/27/2023, 7:08 AM