Skip to content

Dockerfile for minimal container#804

Open
niemasd wants to merge 1 commit intolh3:masterfrom
niemasd:patch-1
Open

Dockerfile for minimal container#804
niemasd wants to merge 1 commit intolh3:masterfrom
niemasd:patch-1

Conversation

@niemasd
Copy link

@niemasd niemasd commented Aug 14, 2021

I've been maintaining minimal (<50 MB) Docker containers for Minimap2 here:

It might be good to have a DockerHub repo linked directly to this GitHub repo so an "official" Docker container gets automatically generated when you make new releases.

This Dockerfile I've provided has the version number hardcoded, but if you wanted a Dockerfile that always pulls the most recent release, you could replace the following:

wget -qO- "https://github.com/lh3/minimap2/archive/refs/tags/v2.22.tar.gz" | tar -zx

with the following:

wget -qO- https://github.com/lh3/minimap2/archive/refs/tags/$(wget -qO- "https://api.github.com/repos/lh3/minimap2/releases/latest" | grep '"tag_name": "' | cut -d'"' -f4).tar.gz | tar -zx

I've been maintaining minimal (<50 MB) Docker containers for Minimap2 here:

* **Dockerfile:** https://github.com/Niema-Docker/minimap2/blob/main/Dockerfile
* **Container:** https://hub.docker.com/r/niemasd/minimap2

It might be good to have a DockerHub repo linked directly to this GitHub repo so an "official" Docker container gets automatically generated when you make new releases.

This Dockerfile I've provided has the version number hardcoded, but if you wanted a Dockerfile that always pulls the most recent image, you could replace the following:

```bash
wget -qO- "https://github.com/lh3/minimap2/archive/refs/tags/v2.22.tar.gz" | tar -zx
```

with the following:

```bash
wget -qO- https://github.com/lh3/minimap2/archive/refs/tags/$(wget -qO- "https://api.github.com/repos/lh3/minimap2/releases/latest" | grep '"tag_name": "' | cut -d'"' -f4).tar.gz | tar -zx
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant