Igalia / phpreport

Web tool for project time tracking and project management.
http://igalia.github.io/phpreport/
GNU General Public License v3.0
30 stars 12 forks source link

Add production dockerfiles and github action #794

Closed dmtrek14 closed 7 months ago

dmtrek14 commented 7 months ago

This PR adds production-ready dockerfiles to the project, as well as a github action to build images on pushes to main.

The production dockerfiles are based on the following: Next: https://github.com/vercel/next.js/blob/canary/examples/with-docker/Dockerfile FastApi: https://fastapi.tiangolo.com/deployment/docker/#dockerfile

Several changes were needed on the frontend due to errors that occurred at build time. Some were small, such as removing references to unused components, but others were larger, such as moving the authOptions out into its own file and moving the action for the template modal to a form element I added around the Sheet (instead of on the Sheet itself).

Additional note for context that is outside of the PR: There was some configuration required in Github for the containers/packages, including some permissions. I also had to manually build and push the images to Github first so that I could manage the permissions that Actions needed.