-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
29 lines (23 loc) · 1.07 KB
/
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
FROM ubuntu:18.04
LABEL maintainer="Team Stingar <[email protected]>"
LABEL name="hpfeeds-cif"
LABEL version="1.9.1"
LABEL release="1"
LABEL summary="HPFeeds CIFv3 handler"
LABEL description="HPFeeds CIFv3 handler is a tool for generating CIFv3 submissions for honeypot events."
LABEL authoritative-source-url="https://github.com/CommunityHoneyNetwork/hpfeeds-cif"
LABEL changelog-url="https://github.com/CommunityHoneyNetwork/hpfeeds-cif/commits/master"
ENV DEBIAN_FRONTEND "noninteractive"
# hadolint ignore=DL3008,DL3005
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install --no-install-recommends -y gcc git python3-dev python3-pip build-essential libffi-dev libssl-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /opt/requirements.txt
RUN python3 -m pip install --upgrade pip setuptools wheel \
&& python3 -m pip install --upgrade -r /opt/requirements.txt \
&& python3 -m pip install git+https://github.com/CommunityHoneyNetwork/hpfeeds3.git
COPY . /opt/
RUN chmod 0755 /opt/entrypoint.sh
ENTRYPOINT ["/opt/entrypoint.sh"]