forked from thinkst/opencanary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.latest
29 lines (22 loc) · 941 Bytes
/
Dockerfile.latest
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
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/*
# Create and set the working directory
WORKDIR /opencanary
# Copy only the files needed to install dependencies
COPY opencanary/__init__.py ./opencanary/__init__.py
COPY requirements.txt setup.py ./
COPY bin /opencanary/bin
# Install the required dependencies
RUN pip install -r requirements.txt
RUN pip install scapy pcapy-ng
# Copy in the latest version
COPY opencanary ./opencanary
# Set the default application we are running
ENTRYPOINT [ "opencanaryd" ]
# Set the default arguments to be used for the entrypoint
CMD [ "--dev" ]