-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 856 Bytes
/
Dockerfile
File metadata and controls
27 lines (18 loc) · 856 Bytes
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
FROM python:3.13-alpine as builder
RUN apk add --no-cache gcc musl-dev libffi-dev cmake make build-base unzip
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
ADD https://github.com/DFIR-ORC/orc-decrypt/archive/refs/heads/master.zip /tmp/orc-decrypt.zip
RUN unzip /tmp/orc-decrypt.zip -d /tmp \
&& pip install --no-cache-dir /tmp/orc-decrypt-master \
&& rm -rf /tmp/orc-decrypt.zip /tmp/orc-decrypt-master
FROM python:3.13-alpine
RUN apk add --no-cache p7zip bash openssl
COPY --from=builder /app /app
COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages
COPY --from=builder /usr/local/bin/orc-decrypt /usr/local/bin/orc-decrypt
COPY --from=builder /usr/local/bin/unstream /usr/local/bin/unstream
RUN mkdir /data
WORKDIR /data
ENTRYPOINT ["python", "/app/orc2tree.py"]