FROM rocker/shiny:4.0.4

RUN apt-get update -qq && \
    apt-get install -y nginx-light apache2-utils

RUN htpasswd -b -c /etc/nginx/.htpasswd wookie 2AAl7Y7S86PEOiHtU8sn4ePK

COPY nginx.conf /etc/nginx/nginx.conf

CMD bash -c "nginx && shiny-server"
