Dockerfile 716 Bytes
Newer Older
EKbfh's avatar
EKbfh committed
1
2
FROM debian:11-slim

EKbfh's avatar
EKbfh committed
3
ARG BUILD_PACKAGES="build-essential cmake gcc libffi-dev libmemcached-dev libssl-dev zlib1g-dev libpq-dev"
4
5

RUN set -ex \
EKbfh's avatar
EKbfh committed
6
7
8
9
    && apt update && apt-get install -y --no-install-recommends \
    $BUILD_PACKAGES \
    curl \
    libxml2 \
EKbfh's avatar
Add py3    
EKbfh committed
10
    python3 \
EKbfh's avatar
EKbfh committed
11
    python3-pip \
EKbfh's avatar
EKbfh committed
12
13
    && curl -LJO https://code.getnoc.com/noc/noc/-/raw/master/requirements.txt \
    && pip3 install -r requirements.txt \
EKbfh's avatar
EKbfh committed
14
15
16
17
18
19
    && pip3 install \
    lxml==4.6.2 \
    mkdocs-material==7.3.3 \
    mkdocs-macros-plugin==0.6.0 \
    mkdocs-mermaid2-plugin==0.5.2 \
    mkdocstrings==0.16.2 \
EKbfh's avatar
EKbfh committed
20
21
22
23
    && apt remove --purge -y $BUILD_PACKAGES \
    && apt autoremove -y \
    && rm -rf /var/lib/apt/lists/* \

24
25
WORKDIR /docs
VOLUME /docs