-
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.
chore: rename oauth-api to oauth-refresh
- Loading branch information
1 parent
a497cd1
commit c8f12f5
Showing
7 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
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
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,20 +1,20 @@ | ||
FROM lukemathwalker/cargo-chef:latest-rust-1.77.0 AS chef | ||
WORKDIR /app/oauth-api | ||
WORKDIR /app/oauth-refresh | ||
|
||
FROM chef AS planner | ||
COPY . . | ||
RUN cargo chef prepare --recipe-path recipe.json | ||
|
||
FROM chef AS builder | ||
COPY --from=planner /app/oauth-api/recipe.json recipe.json | ||
COPY --from=planner /app/oauth-refresh/recipe.json recipe.json | ||
# Build dependencies - this is the caching Docker layer! | ||
RUN cargo chef cook --release --recipe-path recipe.json --bin oauth-api | ||
RUN cargo chef cook --release --recipe-path recipe.json --bin oauth-refresh | ||
# Build application | ||
COPY . . | ||
RUN cargo build --release --bin oauth-api | ||
RUN cargo build --release --bin oauth-refresh | ||
|
||
FROM debian:bookworm-slim AS runtime | ||
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* | ||
WORKDIR /app | ||
COPY --from=builder /app/oauth-api/target/release/oauth-api /usr/local/bin | ||
ENTRYPOINT /usr/local/bin/oauth-api | ||
COPY --from=builder /app/oauth-refresh/target/release/oauth-refresh /usr/local/bin | ||
ENTRYPOINT /usr/local/bin/oauth-refresh |
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,3 +1,3 @@ | ||
# OAuth API | ||
# OAuth Refresh | ||
|
||
This is an API that uses OAuth2.0 blueprints to both refresh tokens and trigger the authorization code flow. |
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
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
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