mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2025-12-12 21:38:58 +00:00
22 lines
484 B
Docker
22 lines
484 B
Docker
ARG UBUNTU_VERSION=22.04
|
|
|
|
FROM ubuntu:$UBUNTU_VERSION AS build
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends build-essential git cmake
|
|
|
|
WORKDIR /sd.cpp
|
|
|
|
COPY . .
|
|
|
|
RUN cmake . -B ./build
|
|
RUN cmake --build ./build --config Release --parallel
|
|
|
|
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-cli /sd-cli
|
|
|
|
ENTRYPOINT [ "/sd-cli" ] |