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 ca-certificates wget ffmpeg && \
    wget ${site_url}/${pkg} && \
    apt-get install -y ./${pkg} && \
    apt-get autoremove -y && \
    apt-get clean && \
    rm ${pkg} && \
    rm -rf /var/lib/apt/lists/*

EXPOSE 58050/tcp 58051/tcp 1900/udp

ENTRYPOINT [ "<%= @workdir %>/launch.sh" ]
