Skip to content

Commit

Permalink
feat(docker): update Dockerfile to make nipe work in containers (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptprivate committed Jul 8, 2024
1 parent 850cba3 commit 5c1feff
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,25 @@ FROM ubuntu:latest
COPY . /usr/src/nipe
WORKDIR /usr/src/nipe

EXPOSE 9050
EXPOSE 9050 9061

RUN apt-get update && \
apt-get install -y cpanminus && \
apt-get install -y libssl-dev && \
apt-get install -y libnet-ssleay-perl && \
apt-get install -y libcrypt-ssleay-perl && \
apt-get install -y tor && \
apt-get install -y iptables && \
rm -rf /var/lib/apt/lists/*

RUN cpanm --installdeps .
RUN perl nipe.pl install

RUN chmod +x nipe.pl

# docker run -d -it --privileged --cap-add=NET_ADMIN nipe
# OR
# docker run -d -it --name nipe-container --privileged --cap-add=NET_ADMIN nipe
# THEN
# docker exec -it <container_id> ./nipe.pl <command>

ENTRYPOINT ["/bin/bash"]

0 comments on commit 5c1feff

Please sign in to comment.