aboutsummaryrefslogtreecommitdiffstats
path: root/opencanary/Dockerfile.stable.arm7l
blob: c374bf9a877c519d8299dcddbddf7dd062965d70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.10-buster

# Download cache lists and install minimal versions
RUN apt-get update && apt-get -yq install --no-install-recommends \
        # Required linux dependencies
        sudo vim build-essential libssl-dev libffi-dev python-dev libpcap-dev && \
        # Remove cache lists and clean up anything not needed to minimize image size
        apt-get autoremove -yq && apt-get clean && rm -rf /var/lib/apt/lists/*

RUN wget https://static.rust-lang.org/dist/rust-1.87.0-armv7-unknown-linux-gnueabihf.tar.xz && \
        tar -xvf rust-1.87.0-armv7-unknown-linux-gnueabihf.tar.xz && \
        cd rust-1.87.0-armv7-unknown-linux-gnueabihf && \
        ./install.sh

# Install required pip dependencies
RUN pip install opencanary
RUN pip install scapy pcapy-ng

# Set the default application we are running
ENTRYPOINT [ "opencanaryd" ]

# Set the default arguments to be used for the entrypoint
CMD [ "--dev", "--uid=nobody", "--gid=nogroup" ]