Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile for minimal container #804

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Dockerfile for minimal container #804

wants to merge 1 commit into from

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