<commit_before># Creating a Docker image

This guide describes creating a Docker image. This includes using Dockerfiles
and the commands used to create and name the images from Dockerfiles.

Docker uses the concepts "images" and "containers". An image can be thought of
as a blueprint of your tool, including all the dependencies it needs to run.
When you use a Docker image, such as passing FASTQ data, then you create an
live instance of the image running on your system. This is called a container.

The first step to creating an image of your tool is to write a Dockerfile. Each
line in a Dockerfile is a set of instructions that are to build an image. Below
is an example Dockerfile which you can copy. There is more [detailed
documentation available for building Dockerfiles][Dockerfile].

[Dockerfile]:https://docs.docker.com/reference/builder/

## Example

This example sets the base image operating system as Ubuntu version 14:04 using
the `BASE` directive. Next you should specify your name and email address
using the `MAINTAINER` line. The last line installs the [velvet][] genome
assembler using the apt package manager. This line is broken across two lines
using `\`, this makes the Dockerfile easier to read as opposed to very long
lines.

[velvet]:https://www.ebi.ac.uk/~zerbino/velvet/

~~~ Dockerfile<commit_msg>Fix typo in build docker image<commit_after># Creating a Docker image

This guide describes creating a Docker image. This includes using Dockerfiles
and the commands used to create and name the images from Dockerfiles.

Docker uses the concepts "images" and "containers". An image can be thought of
as a blueprint of your tool, including all the dependencies it needs to run.
When you use a Docker image, such as passing FASTQ data, then you create an
live instance of the image running on your system. This is called a container.

The first step to creating an image of your tool is to write a Dockerfile. Each
line in a Dockerfile is a set of instructions that are to build an image. Below
is an example Dockerfile which you can copy. There is more [detailed
documentation available for building Dockerfiles][Dockerfile].

[Dockerfile]:https://docs.docker.com/reference/builder/

## Example

This example sets the base image operating system as Ubuntu version 14:04 using
the `FROM` directive. Next you should specify your name and email address
using the `MAINTAINER` line. The last line installs the [velvet][] genome
assembler using the apt package manager. This line is broken across two lines
using `\`, this makes the Dockerfile easier to read as opposed to very long
lines.

[velvet]:https://www.ebi.ac.uk/~zerbino/velvet/

~~~ Dockerfile
{'fraction_non_alphanumeric': 0.05304445274561076, 'fraction_numerical': 0.0029884198729921555, 'mean_word_length': 4.510288065843621, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2968848', 'n_tokens_mistral': 720, 'n_tokens_neox': 670, 'n_words': 404}