Skip to content

Commit 4b3fce0

Browse files
authored
Merge pull request #3461 from kaitozaw/issue-fix-dockerfile-and-testing
issue-fix-dockerfile-and-testing
2 parents 77f59d0 + 149aeaa commit 4b3fce0

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
###########################################################################################################
1616

1717
# ---------------------------- Start of Builder 0 - Gemset Build ------------------------------------------
18-
FROM ruby:3.4.7-slim-bullseye AS builder
18+
FROM ruby:3.4.7-slim-bookworm AS builder
1919

2020
COPY . /beef
2121

@@ -28,10 +28,12 @@ RUN echo "gem: --no-ri --no-rdoc" > /etc/gemrc \
2828
git \
2929
curl \
3030
xz-utils \
31+
pkg-config \
3132
make \
3233
g++ \
3334
libcurl4-openssl-dev \
3435
ruby-dev \
36+
libyaml-dev \
3537
libffi-dev \
3638
zlib1g-dev \
3739
libsqlite3-dev \
@@ -44,7 +46,7 @@ RUN echo "gem: --no-ri --no-rdoc" > /etc/gemrc \
4446

4547

4648
# ---------------------------- Start of Builder 1 - Final Build ------------------------------------------
47-
FROM ruby:3.4.7-slim-bullseye
49+
FROM ruby:3.4.7-slim-bookworm
4850
LABEL maintainer="Beef Project" \
4951
source_url="github.com/beefproject/beef" \
5052
homepage="https://beefproject.com/"
@@ -61,6 +63,9 @@ RUN adduser --home /beef --gecos beef --disabled-password beef \
6163
&& apt-get update \
6264
&& apt-get install -y --no-install-recommends \
6365
curl \
66+
wget \
67+
espeak \
68+
lame \
6469
openssl \
6570
libssl-dev \
6671
libreadline-dev \

spec/beef/core/main/network_stack/handlers/redirector_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
response = Curl::Easy.http_get("http://127.0.0.1:#{@port}/test/")
3333
expect(response.response_code).to eql(302)
3434
expect(response.body_str).to eql("302 found")
35-
expect(response.header_str).to match(/Location: http:\/\/www.beefproject\.com/)
35+
expect(response.header_str).to match(/^location:\s*http:\/\/www\.beefproject\.com\r?$/i)
3636
end
3737

3838
end

0 commit comments

Comments
 (0)