-
Notifications
You must be signed in to change notification settings - Fork 2
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
d03339b
commit cba67fd
Showing
6 changed files
with
23 additions
and
10 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,8 @@ | ||
.github | ||
.idea | ||
helm | ||
scripts | ||
.dockerignore | ||
.gitignore | ||
compose.yaml | ||
target |
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 |
---|---|---|
|
@@ -10,7 +10,15 @@ COPY ./ ./ | |
|
||
RUN cargo build --manifest-path wazuh-cert-oauth2/Cargo.toml --release | ||
|
||
FROM gcr.io/distroless/base-debian12 | ||
FROM debian:12 as dep | ||
|
||
RUN apt-get update && apt-get install -y gcc | ||
|
||
# Dependencies for libpq (used by | ||
RUN mkdir /deps && \ | ||
cp /usr/lib/*-linux-gnu/libgcc_s.so.* /deps | ||
|
||
FROM gcr.io/distroless/base-debian12:nonroot | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.description="adorsys Cameroon" | ||
|
@@ -20,6 +28,7 @@ ENV RUST_LOG=warn | |
WORKDIR /app | ||
|
||
COPY --from=builder /app/wazuh-cert-oauth2/target/release/wazuh-cert-oauth2 /app/wazuh-cert-oauth2 | ||
COPY --from=dep /deps /usr/lib/ | ||
|
||
EXPOSE 8000 | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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