summaryrefslogtreecommitdiff
path: root/docker/collector/Dockerfile
blob: b84a56a402d395057f43b04c126685bbe6111f6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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