# Set the base image to Ubuntu 18.04 and NVIDIA GPU
FROM nvidia/cuda:12.1.0-base-ubuntu22.04

# File Author / Maintainer
MAINTAINER Xavier Grand <xavier.grand@ens-lyon.fr>

ARG PACKAGE_VERSION=6.4.6
ARG BUILD_PACKAGES="wget apt-transport-https"
ARG DEBIAN_FRONTEND=noninteractive

RUN apt update && \
    apt install --yes $BUILD_PACKAGES libnvidia-compute-515-server && \ 
    cd /tmp && \
    wget -q https://mirror.oxfordnanoportal.com/software/analysis/ont_guppy_${PACKAGE_VERSION}-1~bionic_amd64.deb && \
    apt install --yes /tmp/ont_guppy_${PACKAGE_VERSION}-1~bionic_amd64.deb && \
    rm *.deb && \
    apt-get autoremove --purge --yes && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*