# Parameters related to building hipsparse
ARG base_image

FROM ${base_image}
LABEL maintainer="rocsparse-maintainer@amd.com"

# Copy the debian package of hipsparse into the container from host
COPY *.deb /tmp/

# Install the debian package
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --allow-unauthenticated -y \
    /tmp/hipsparse-*.deb \
  && rm -f /tmp/*.deb \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*
