File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 11ARG UBUNTU_VERSION=22.04
22
3- FROM ubuntu:$UBUNTU_VERSION as build
3+ FROM ubuntu:$UBUNTU_VERSION AS build
44
5- RUN apt-get update && apt-get install -y build-essential git cmake
5+ RUN apt-get update && apt-get install -y --no-install-recommends build-essential git cmake
66
77WORKDIR /sd.cpp
88
99COPY . .
1010
11- RUN mkdir build && cd build && cmake .. && cmake --build . --config Release
11+ RUN cmake . -B ./build
12+ RUN cmake --build ./build --config Release --parallel
1213
13- FROM ubuntu:$UBUNTU_VERSION as runtime
14+ FROM ubuntu:$UBUNTU_VERSION AS runtime
15+
16+ RUN apt-get update && \
17+ apt-get install --yes --no-install-recommends libgomp1 && \
18+ apt-get clean
1419
1520COPY --from=build /sd.cpp/build/bin/sd /sd
1621
You can’t perform that action at this time.
0 commit comments