You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
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.
## How was it tested?
Tested using this project
https://github.com/mikeland73/hello-world-server
```bash
devbox generate dockerfile --for prod
docker build . -t hello-world
docker run -p 8080:8080 hello-world
```
0 commit comments