-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (28 loc) · 1.01 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
35
FROM python:3.7-slim-buster as builder
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
python3-dev \
python3-pip \
python3-wheel \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
# Build MISP Modules
RUN mkdir /wheel
WORKDIR /srv
COPY requirements.txt .
RUN pip3 wheel -r requirements.txt --no-cache-dir -w /wheel/
FROM python:3.7-slim-buster
RUN apt-get update && apt-get install -y --no-install-recommends \
cron \
rsync \
ssh-client \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
RUN mkdir /srv/misp-feedgen
WORKDIR /srv/misp-feedgen
COPY --from=builder /wheel /wheel
RUN pip install /wheel/*.whl
COPY format /srv/misp-feedgen/format
COPY modifier /srv/misp-feedgen/modifier
COPY post-run /srv/misp-feedgen/post-run
COPY lib /srv/misp-feedgen/lib
COPY generate.py /srv/misp-feedgen/
COPY entrypoint_cron.sh /