{"id":24989027,"url":"https://github.com/engineervix/docker-python-latex","last_synced_at":"2025-03-29T11:40:24.872Z","repository":{"id":81444597,"uuid":"538650015","full_name":"engineervix/docker-python-latex","owner":"engineervix","description":"A Docker image to ease building Python applications that depend on LaTeX","archived":false,"fork":false,"pushed_at":"2025-02-28T09:26:07.000Z","size":149,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T16:17:24.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/engineervix/python-latex","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/engineervix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-19T18:47:17.000Z","updated_at":"2024-07-02T13:25:29.000Z","dependencies_parsed_at":"2023-12-01T20:25:07.564Z","dependency_job_id":"ebd1ce55-c5e4-4222-b2f4-79fd6fa5983c","html_url":"https://github.com/engineervix/docker-python-latex","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineervix%2Fdocker-python-latex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineervix%2Fdocker-python-latex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineervix%2Fdocker-python-latex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineervix%2Fdocker-python-latex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/engineervix","download_url":"https://codeload.github.com/engineervix/docker-python-latex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246180898,"owners_count":20736459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-04T12:13:05.902Z","updated_at":"2025-03-29T11:40:24.526Z","avatar_url":"https://github.com/engineervix.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-latex\n\n[![Build Docker images](https://github.com/engineervix/docker-python-latex/actions/workflows/build-docker-image.yml/badge.svg)](https://github.com/engineervix/docker-python-latex/actions/workflows/build-docker-image.yml)\n[![Publish Docker images](https://github.com/engineervix/docker-python-latex/actions/workflows/publish-docker-image.yml/badge.svg)](https://github.com/engineervix/docker-python-latex/actions/workflows/publish-docker-image.yml)\n\n\u003e A Docker image to ease building Python applications that depend on [LaTeX](https://www.latex-project.org/)\n\n## Features\n\n- Python 3.8 - 3.12, based on the official `slim-*` images, where `*` includes:\n  - `bullseye`\n  - `bookworm`\n- LaTeX environment with `texlive-full`\n- [Pandoc](https://pandoc.org/) for converting from one markup format to another\n\n## Usage\n\n### Pulling the Image\n\nYou can pull the pre-built image from Docker Hub:\n\n```sh\ndocker pull engineervix/python-latex:3.12-slim-bookworm\n```\n\nReplace `3.12` and `bookworm` with the desired Python version and Debian release, respectively.\n\n### Running a Container\n\nTo run a container using the image:\n\n```sh\ndocker run -it --rm engineervix/python-latex:3.12-slim-bookworm\n```\n\nThis will start an interactive shell inside the container.\n\n### Building a Container with Your Application\n\nHere's an example of a `Dockerfile` for your Python application:\n\n```dockerfile\nFROM engineervix/python-latex:3.12-slim-bookworm\n\nWORKDIR /app\n\n# Copy your application files\nCOPY . /app\n\n# Install any necessary dependencies\nRUN pip install -r requirements.txt\n\n# Command to run your application\nCMD [\"python\", \"your_script.py\"]\n```\n\nBuild and run your container:\n\n```sh\ndocker build -t my-python-latex-app .\ndocker run -it --rm my-python-latex-app\n```\n\n### Using LaTeX and Pandoc\n\nYou can directly use LaTeX and Pandoc commands within the container. For example, to convert a Markdown file to a PDF:\n\n1. Start a container and mount your current directory:\n\n```sh\ndocker run -it --rm -v $(pwd):/workspace -w /workspace engineervix/python-latex:3.12-slim-bookworm\n```\n\n2. Inside the container, use Pandoc to convert your file:\n\n```sh\npandoc input.md -o output.pdf\n```\n\nOr compile a LaTeX document:\n\n```sh\npdflatex document.tex\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengineervix%2Fdocker-python-latex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fengineervix%2Fdocker-python-latex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengineervix%2Fdocker-python-latex/lists"}