-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (26 loc) · 1.15 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
30
31
32
33
34
FROM ubuntu:18.04
LABEL maintainer="Team Stingar <[email protected]>"
LABEL name="hpfeeds-logger"
LABEL version="1.9.1"
LABEL release="1"
LABEL summary="Community Honey Network hpfeeds logger"
LABEL description="Small app for reading from CHN's hpfeeds3 broker and writing logs"
LABEL authoritative-source-url="https://github.com/CommunityHoneyNetwork/hpfeeds-logger"
LABEL changelog-url="https://github.com/CommunityHoneyNetwork/hpfeeds-logger/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 runit libgeoip-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY hpfeeds-logger/requirements.txt /opt/requirements.txt
# hadolint ignore=DL3013
RUN python3 -m pip install --upgrade pip setuptools wheel \
&& python3 -m pip install -r /opt/requirements.txt \
&& python3 -m pip install git+https://github.com/CommunityHoneyNetwork/hpfeeds3.git
RUN mkdir /var/log/hpfeeds-logger
COPY . /opt/
RUN chmod 755 /opt/entrypoint.sh
ENV PYTHONPATH="/opt/hpfeeds-logger"
ENTRYPOINT ["/opt/entrypoint.sh"]