From 940a2018e18e6afd97fc818127a98d27969b6fc4 Mon Sep 17 00:00:00 2001 From: Serkan Sahin <14278530+SergeantSerk@users.noreply.github.com> Date: Fri, 10 Oct 2025 17:17:45 +0100 Subject: [PATCH] chore: fix dockerfile libgomp1 dependency + improvements (#852) --- Dockerfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index bd9a378..4173357 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,21 @@ ARG UBUNTU_VERSION=22.04 -FROM ubuntu:$UBUNTU_VERSION as build +FROM ubuntu:$UBUNTU_VERSION AS build -RUN apt-get update && apt-get install -y build-essential git cmake +RUN apt-get update && apt-get install -y --no-install-recommends build-essential git cmake WORKDIR /sd.cpp COPY . . -RUN mkdir build && cd build && cmake .. && cmake --build . --config Release +RUN cmake . -B ./build +RUN cmake --build ./build --config Release --parallel -FROM ubuntu:$UBUNTU_VERSION as runtime +FROM ubuntu:$UBUNTU_VERSION AS runtime + +RUN apt-get update && \ + apt-get install --yes --no-install-recommends libgomp1 && \ + apt-get clean COPY --from=build /sd.cpp/build/bin/sd /sd