FROM debian:bullseye ENV DEBIAN_FRONTEND noninteractive RUN apt update RUN apt install -y git nginx supervisor uwsgi uwsgi-plugin-python3 emacs-nox virtualenv procps RUN apt clean WORKDIR /opt/ RUN mkdir certs RUN git clone https://git.sunet.se/soc_collector.git /opt/collector WORKDIR /opt/collector/ COPY setup.sh /opt/collector/ COPY supervisord.conf /etc/supervisor/ COPY nginx.conf /etc/nginx/sites-available/default COPY uwsgi.conf /etc/uwsgi/uwsgi.ini COPY wsgi_demo_users.yaml /opt/collector/src/ RUN /opt/collector/setup.sh ENTRYPOINT supervisord -c /etc/supervisor/supervisord.conf