-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
32 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,7 @@ | ||
# all start with .(dot), including directories and files | ||
.* | ||
cargo-generate.toml | ||
CHANGELOG.md | ||
LICENSE* | ||
docker-compose.yml | ||
README.md |
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,4 +1,27 @@ | ||
FROM rockylinux | ||
LABEL MAINTAINER="Mystic" | ||
# BUILDING | ||
FROM rockylinux:9 AS builder | ||
LABEL author="Mystic" | ||
WORKDIR /app | ||
|
||
# build deps | ||
RUN dnf upgrade --refresh -y && \ | ||
dnf install -y \ | ||
cmake \ | ||
gcc \ | ||
gcc-c++ \ | ||
make && \ | ||
dnf clean all | ||
|
||
COPY . . | ||
|
||
WORKDIR ./build | ||
RUN cmake .. && cmake --build . --target {{project-name}} --config Release --parallel 8 | ||
|
||
# DEPLOYING | ||
FROM scratch | ||
|
||
WORKDIR / | ||
|
||
COPY --from=builder /app/build/{{project-name}} ./ | ||
|
||
ENTRYPOINT ["/{{project-name}}"] |