Simple implementation for generating a prod dockerfile from a devbox project.
Notes:
Flag to create this is hidden.
Currently this requires a start script. There are also optional install and build scripts.
Follow ups:
In addition to start script I want to support services but I was having trouble getting process compose to start as Dockerfile CMD. Will debug further and add in follow up.
We can greatly optimize the Dockerfile by downloading devbox dependencies first before coping source code. This will likely require a new devbox command or flag.
Summary
Simple implementation for generating a prod dockerfile from a devbox project.
Notes:
start
script. There are also optionalinstall
andbuild
scripts.Follow ups:
start
script I want to support services but I was having trouble getting process compose to start as Dockerfile CMD. Will debug further and add in follow up.How was it tested?
Tested using this project https://github.com/mikeland73/hello-world-server