-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71a2d11
commit 5b4bb8c
Showing
4 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
build/ | ||
.git/ | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
Cargo.lock | ||
|
||
# build script files | ||
build | ||
/build_* | ||
cmake_build | ||
.cmake_build | ||
|
||
# buck generated files | ||
.buckd/ | ||
.lsp-buck-out/ | ||
.lsp.buckd/ | ||
buck-out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM ubuntu:22.04 as dev-base | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
cmake \ | ||
ca-certificates \ | ||
git \ | ||
curl \ | ||
libssl-dev \ | ||
ninja-build && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s - -y | ||
ENV PATH /root/.cargo/bin:$PATH | ||
|
||
FROM dev-base as build | ||
WORKDIR /dyno-build | ||
COPY . . | ||
RUN scripts/build.sh | ||
|
||
FROM ubuntu:22.04 as final | ||
WORKDIR /opt/dyno | ||
COPY --from=build /dyno-build/build/dynolog/src/dynolog /dyno-build/build/release/dyno ./ | ||
CMD ["/opt/dyno/dynolog", "--enable_ipc_monitor"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters