from checks_parser_base_ubuntu #for envsubst RUN DEBIAN_FRONTEND=noninteractive apt install -y gettext ARG pkgname=checks-parser ARG pkgver=1.0 ARG revision=1 ARG pkg=${pkgname}_$pkgver-$revision WORKDIR /app RUN mkdir -p $pkg/DEBIAN RUN mkdir -p $pkg/usr/bin RUN mkdir -p /output COPY deploy/debian/control $pkg/DEBIAN/control COPY deploy/debian/copy.sh . RUN envsubst < $pkg/DEBIAN/control | tee $pkg/DEBIAN/control.output && mv $pkg/DEBIAN/control.output $pkg/DEBIAN/control RUN envsubst < copy.sh | tee copy.sh.output && mv copy.sh.output copy.sh RUN chmod +x copy.sh RUN cp /app/build/checks-parser $pkg/usr/bin RUN dpkg-deb --build $pkg ENTRYPOINT ["./copy.sh"]