dominiontabs icon indicating copy to clipboard operation
dominiontabs copied to clipboard

update dockerfile to get fonts from GDrive instead

Open nickv2002 opened this issue 1 year ago • 0 comments

This improves the dockerfile that was trying to be clever about fonts. Instead it just downloads them from Google Drive instead.


This also adds an initial workflow to build docker image and upload to GitHub Container registry

Some GPT generated suggestions for setting it up (I don't think I have access to create the tokens)

Log in to GitHub Container Registry: Using the docker/login-action, we log into GHCR using the credentials stored in GHCR_USERNAME and GHCR_TOKEN. This step is critical for allowing subsequent docker push commands to authenticate against the GitHub Container Registry.

Build and push Docker image: We build the Docker image using the docker build command. The tag (-t) for the Docker image is set to include the GitHub Container Registry URL (ghcr.io), the repository name (${{ github.repository }}), a specific name for your application (change myapplication as necessary), and the commit SHA (${{ github.sha }}) for uniqueness. Afterwards, the docker push command uploads the built image to GHCR.

Make sure to:

Replace myapplication with the desired name for your Docker image. Adjust any Docker build arguments or context as necessary for your specific Dockerfile. This integration adds a robust CI/CD pipeline step for containerization alongside your existing Python package deployment, streamlining both code and container distribution with each release.

nickv2002 avatar Feb 26 '24 22:02 nickv2002