fix dockerfile installation and test spec
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
###########################################################################################################
|
###########################################################################################################
|
||||||
|
|
||||||
# ---------------------------- Start of Builder 0 - Gemset Build ------------------------------------------
|
# ---------------------------- Start of Builder 0 - Gemset Build ------------------------------------------
|
||||||
FROM ruby:3.4.7-slim-bullseye AS builder
|
FROM ruby:3.4.5-slim-bullseye AS builder
|
||||||
|
|
||||||
COPY . /beef
|
COPY . /beef
|
||||||
|
|
||||||
@@ -28,10 +28,12 @@ RUN echo "gem: --no-ri --no-rdoc" > /etc/gemrc \
|
|||||||
git \
|
git \
|
||||||
curl \
|
curl \
|
||||||
xz-utils \
|
xz-utils \
|
||||||
|
pkg-config \
|
||||||
make \
|
make \
|
||||||
g++ \
|
g++ \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
ruby-dev \
|
ruby-dev \
|
||||||
|
libyaml-dev \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
@@ -44,7 +46,7 @@ RUN echo "gem: --no-ri --no-rdoc" > /etc/gemrc \
|
|||||||
|
|
||||||
|
|
||||||
# ---------------------------- Start of Builder 1 - Final Build ------------------------------------------
|
# ---------------------------- Start of Builder 1 - Final Build ------------------------------------------
|
||||||
FROM ruby:3.4.7-slim-bullseye
|
FROM ruby:3.4.5-slim-bullseye
|
||||||
LABEL maintainer="Beef Project" \
|
LABEL maintainer="Beef Project" \
|
||||||
source_url="github.com/beefproject/beef" \
|
source_url="github.com/beefproject/beef" \
|
||||||
homepage="https://beefproject.com/"
|
homepage="https://beefproject.com/"
|
||||||
@@ -61,6 +63,9 @@ RUN adduser --home /beef --gecos beef --disabled-password beef \
|
|||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
curl \
|
curl \
|
||||||
|
wget \
|
||||||
|
espeak \
|
||||||
|
lame \
|
||||||
openssl \
|
openssl \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libreadline-dev \
|
libreadline-dev \
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ RSpec.describe 'BeEF Redirector' do
|
|||||||
response = Curl::Easy.http_get("http://127.0.0.1:#{@port}/test/")
|
response = Curl::Easy.http_get("http://127.0.0.1:#{@port}/test/")
|
||||||
expect(response.response_code).to eql(302)
|
expect(response.response_code).to eql(302)
|
||||||
expect(response.body_str).to eql("302 found")
|
expect(response.body_str).to eql("302 found")
|
||||||
expect(response.header_str).to match(/Location: http:\/\/www.beefproject\.com/)
|
expect(response.header_str).to match(/location:\s*http:\/\/www\.beefproject\.com/i)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user