FROM debian:buster-slim

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
    && apt-get install -y \
        build-essential \
        debhelper \
        devscripts \
        reprepro \
    && mkdir /build /reprepro

RUN apt-get update \
    && apt-get install -y --no-install-recommends \
        curl \
        ca-certificates \
        gnupg2 \
        libfontconfig \
    && curl -sL https://deb.nodesource.com/setup_10.x | bash - \
    && apt-get install -y --no-install-recommends \
        nodejs

VOLUME ["/build", "/reprepro"]
WORKDIR /build

COPY vn-debuild vn-include /usr/bin/