forked from SiriusScan/Sirius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (28 loc) · 784 Bytes
/
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
# Go API Dockerfile
FROM golang:1.20-bullseye
WORKDIR /engine
COPY .air.toml .air.toml
# Dependencies
# Go API Dockerfile
FROM golang:1.20-bullseye
WORKDIR /engine
COPY .air.toml .air.toml
# Dependencies
RUN apt-get update -y && \
apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential libpcap-dev ndiff libssl-dev libssh-dev
WORKDIR /tmp
RUN wget https://nmap.org/dist/nmap-7.92.tar.bz2
RUN tar xf nmap-7.92.tar.bz2
WORKDIR /tmp/nmap-7.92
RUN ./configure
RUN make
RUN make install
RUN cp nmap /usr/bin/nmap
RUN cp nmap-os-db /usr/local/bin/../share/nmap/nmap-os-db
WORKDIR /engine
#DEV Dependencies
RUN go install github.com/cosmtrek/air@latest
# Invoke air to run the server after volume mount
ENTRYPOINT [ "air" ]
EXPOSE 5672