From 50685ef77be2cde85b8211f449ec78bccb316985 Mon Sep 17 00:00:00 2001 From: Spencer Heywood Date: Mon, 20 Mar 2023 22:54:55 -0600 Subject: [PATCH] updated Dockerfile Signed-off-by: Spencer Heywood --- server/Dockerfile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index ebeb9fe1..54555de9 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,9 +1,17 @@ -FROM ruby:2.1-onbuild +FROM ruby:3.2.1 MAINTAINER Mark Percival -EXPOSE 53/udp +# Install dependencies +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get update -qq \ + && apt-get install gem libpq-dev -y \ + && mkdir -p /app \ + && rm -rf /var/lib/apt/lists/* + +COPY . /app +WORKDIR /app +RUN bundle install -CMD ["ruby ./dnscat2.rb"] +EXPOSE 53/udp -# Run it -# docker run -p 53:53/udp -it --rm mpercival/dnscat2 ruby ./dnscat2.rb foo.org +ENTRYPOINT ["ruby", "dnscat2.rb"]