ltex-ls
ltex-ls copied to clipboard
Add a Dockerfile for container image building
Description
LTeX is very useful and could also be used in CI/CD pipelines or any other environment lacking java. To run it everywhere it could be great to have a container image available.
Actions
I simply added a Dockerfile to build an LTeX image.
Tests
To test the container image, install a container solution such as Docker or Podman. For this tests we will use podman but the commands are the same.
- Clone the repository
- Go in the repository's root directory
- Run the command
podman build -t ltex:latest .
- Wait for the build to complete
- Run the following command:
podman run -it --rm -v path/to/test/files:/files localhost/ltex:latest ltex-cli /files
Of course, replace path/to/test/files
with an actual directory container files to be checked. Don't worry about the --rm
option, it is to remove the container instance after running.
We could also remove the ENTRYPOINT
to let the choice to the user to choose between ltex-ls
and ltex-cli
.
Ok I removed the ENTRYPOINT to use a CMD instead so the user could use both ltext-cli
and ltext-ls
from the same image.
I do not plan on making any change unless you require me to do some modifications :D
I really would love to see that feature