chore: add sd Dockerfile

This commit is contained in:
leejet
2023-08-22 22:06:43 +08:00
parent a393bebec8
commit 721cb324af
3 changed files with 42 additions and 1 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
ARG UBUNTU_VERSION=22.04
FROM ubuntu:$UBUNTU_VERSION as build
RUN apt-get update && apt-get install -y build-essential git cmake
WORKDIR /sd.cpp
COPY . .
RUN mkdir build && cd build && cmake .. && cmake --build . --config Release
FROM ubuntu:$UBUNTU_VERSION as runtime
COPY --from=build /sd.cpp/build/bin/sd /sd
ENTRYPOINT [ "/sd" ]