FROM <%= node['bubbleupnp-server']['Dockerfile']['FROM'] %>

ARG site_url=https://launchpad.net/~bubbleguuum/+archive/bubbleupnpserver/+files
ARG pkg=bubbleupnpserver_0.9-5_all.deb

RUN apt-get update -y && \
    apt-get install -y --no-install-recommends wget ffmpeg && \
    wget ${site_url}/${pkg} && \
    dpkg -i $pkg && \
    apt-get autoremove -y && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

EXPOSE 58050/tcp 58051/tcp 1900/udp

ENTRYPOINT [ "/usr/share/bubbleupnpserver/launch.sh" ]
