File: Dockerfile

package info (click to toggle)
openvas-scanner 23.40.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 22,692 kB
  • sloc: ansic: 41,669; xml: 6,251; pascal: 3,723; yacc: 1,287; sh: 1,101; makefile: 333; sql: 282; javascript: 12
file content (32 lines) | stat: -rw-r--r-- 753 bytes parent folder | download
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
# to be built with openvas-scanner top level dir as base

FROM registry.community.greenbone.net/community/gvm-libs:edge

# Build from src
COPY . /opt/openvas-build/
WORKDIR /opt/openvas-build

RUN .github/install-openvas-dependencies.sh

RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \
    redis-server \
    redis-tools \
    patchelf

RUN mkdir -p build && \
    cd build && \
    cmake .. && \
    make -j$(nproc) && \
    make install

COPY rust/openvasd-tests/entrypoint.sh /entrypoint.sh

COPY .docker/openvas.conf /etc/openvas/

RUN chmod +x /entrypoint.sh

RUN sed 's/redis-openvas/redis/g' /opt/openvas-build/config/redis-openvas.conf > /etc/redis/redis.conf

EXPOSE 3000

ENTRYPOINT ["/entrypoint.sh"]