<commit_before># Docker

1.  Install [Docker](https://www.docker.com/) for your platform.

2.  Create a Dockerfile in your project directory (if you use `foliant init`, the Dockerfile is created automatically):

        FROM foliant/foliant

    If you plan to bake pdf or docx, use the image with Pandoc and TeXLive:

        FROM foliant/foliant:pandoc

    > Pandoc and TeXLive are not included in the default image because they add about 5 GB to the image size. For situations where you're interesing in site generation only, this would add way too much overhead.

3.  Build the image for your project:

        $ docker build -t my-project .

4.  Run Foliant in Docker:

        $ docker run --rm -it -v (pwd):/usr/src/app -w /usr/src/app my-project make pdf<commit_msg>Docs: Docker: Update command from fish to bash.<commit_after># Docker

1.  Install [Docker](https://www.docker.com/) for your platform.

2.  Create a Dockerfile in your project directory (if you use `foliant init`, the Dockerfile is created automatically):

        FROM foliant/foliant

    If you plan to bake pdf or docx, use the image with Pandoc and TeXLive:

        FROM foliant/foliant:pandoc

    > Pandoc and TeXLive are not included in the default image because they add about 5 GB to the image size. For situations where you're interesing in site generation only, this would add way too much overhead.

3.  Build the image for your project:

        $ docker build -t my-project .

4.  Run Foliant in Docker:

        $ docker run --rm -it -v `pwd`:/usr/src/app -w /usr/src/app my-project make pdf
{'fraction_non_alphanumeric': 0.07386363636363637, 'fraction_numerical': 0.006313131313131313, 'mean_word_length': 2.9924433249370277, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5242297', 'n_tokens_mistral': 486, 'n_tokens_neox': 450, 'n_words': 222}