forked from netenglabs/suzieq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (29 loc) · 1.1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM python:3.7.9-slim-buster AS compiler
ENV PATH=/root/.local/bin:$PATH
ENV PYTHONPATH=/root/.local/lib
RUN apt-get update && \
pip3 install --upgrade pip
RUN mkdir -p /suzieq/
WORKDIR /suzieq
RUN pip install "poetry==1.1.4"
COPY pyproject.toml /suzieq/
RUN poetry config virtualenvs.create false
RUN poetry install --no-dev --no-root
COPY ./config /suzieq/config
COPY ./suzieq /root/.local/lib/python3.7/site-packages/suzieq
COPY ./build/suzieq-cfg.yml /root/.suzieq/suzieq-cfg.yml
# Certificates and such for REST server
COPY ./build/key.pem /root/.suzieq/
COPY ./build/cert.pem /root/.suzieq/
COPY ./build/launch-gui /usr/local/bin/suzieq-gui
#COPY logo-small.jpg /suzieq
# Copy parquet files for demo
#COPY ./parquet /suzieq/parquet
WORKDIR /suzieq
ENV PATH=/root/.local/bin:$PATH:/root/.local/lib/python3.7/site-packages/suzieq/cli/:/root/.local/lib/python3.7/site-packages/suzieq/poller/:/root/.local/lib/python3.7/site-packages/suzieq/restServer
#ENV PYTHONPATH=/src/python-nubia
ENTRYPOINT ["/bin/bash"]
# USER 1001
LABEL name=suzieq
LABEL version=0.9
LABEL description="Network Observability Tool"