-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (17 loc) · 892 Bytes
/
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
FROM ubuntu:22.04
SHELL ["/bin/bash","-c"]
COPY . /deject
WORKDIR /deject
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update ; apt upgrade -y
RUN apt install git curl build-essential libffi-dev python3 python3-dev python3-pip libtool libssl-dev swig libfuzzy-dev libewf-dev libexpat1 openssl nix -y
RUN nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
RUN echo "filter-syscalls = false" >> /etc/nix/nix.conf
RUN nix-channel --update
RUN nix-env --install --attr nixpkgs.zeek nixpkgs.bulk_extractor nixpkgs.radare2
RUN ln -sf /usr/bin/python3 /usr/bin/python
RUN curl -fsSL https://raw.githubusercontent.com/python-poetry/install.python-poetry.org/main/install-poetry.py | python3
ENV PATH="/nix/var/nix/profiles/default/bin:/root/.local/bin:$PATH"
RUN echo "export PATH=$PATH" >> ~/.bashrc
RUN poetry install --compile
ENTRYPOINT ["poetry","run","deject"]