jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
8.37k stars 195 forks source link

[gen] Implement gen prod dockerfile #2017

Closed mikeland73 closed 5 months ago

mikeland73 commented 5 months ago

Summary

Simple implementation for generating a prod dockerfile from a devbox project.

Notes:

Follow ups:

How was it tested?

Tested using this project https://github.com/mikeland73/hello-world-server

devbox generate dockerfile --for prod
docker build . -t hello-world
docker run -p 8080:8080 hello-world
mikeland73 commented 5 months ago

Gonna merge this and improve in follow up.