Skip to content

Commit c8a66e2

Browse files
authored
chore(build): change base docker image to debian:trixie-slim (#3478)
Change base docker image to debian:trixie-slim - current used bookworm are too old. So, I propose to use stable tagged Debian image - now it's a codename trixie.
1 parent 5dcf4f6 commit c8a66e2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
FROM debian:bookworm-slim AS build
18+
FROM debian:trixie-slim AS build
1919

2020
ARG MORE_BUILD_ARGS
2121
ENV DEBIAN_FRONTEND=noninteractive
2222

23-
RUN apt-get update && apt-get upgrade -y && apt-get -y --no-install-recommends install git build-essential autoconf cmake libtool python3 libssl-dev clang && apt-get autoremove && apt-get clean
23+
RUN apt-get update && apt-get upgrade -y && apt-get -y --no-install-recommends install git build-essential autoconf cmake libtool python3 libssl-dev clang ca-certificates && apt-get autoremove && apt-get clean
2424

2525
WORKDIR /kvrocks
2626

2727
COPY . .
28-
RUN ./x.py build --compiler=clang -DENABLE_OPENSSL=ON -DPORTABLE=1 -DCMAKE_BUILD_TYPE=Release -j $(nproc) $MORE_BUILD_ARGS
28+
RUN ./x.py build --compiler=clang -DCMAKE_EXE_LINKER_FLAGS="-latomic" -DENABLE_OPENSSL=ON -DPORTABLE=1 -DCMAKE_BUILD_TYPE=Release -j $(nproc) $MORE_BUILD_ARGS
2929

30-
FROM debian:bookworm-slim
30+
FROM debian:trixie-slim
3131

3232
RUN apt-get update && apt-get upgrade -y && apt-get -y install openssl ca-certificates redis-tools binutils && apt-get clean
3333

0 commit comments

Comments
 (0)