diff --git a/Dockerfile b/Dockerfile index a5f4931f2..76f54d251 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,12 @@ RUN cargo build --release FROM debian:bullseye-slim + +RUN apt-get update \ + && apt-get install -y --no-install-recommends ca-certificates + +RUN update-ca-certificates + COPY --from=build /usr/src/labrinth/target/release/labrinth /labrinth/labrinth COPY --from=build /usr/src/labrinth/migrations/* /labrinth/migrations/ COPY --from=build /wait /wait diff --git a/src/routes/auth.rs b/src/routes/auth.rs index 2479bfb38..e38ef4b1d 100644 --- a/src/routes/auth.rs +++ b/src/routes/auth.rs @@ -27,7 +27,7 @@ pub enum AuthorizationError { DatabaseError(#[from] crate::database::models::DatabaseError), #[error("Error while parsing JSON: {0}")] SerDeError(#[from] serde_json::Error), - #[error("Error while communicating to GitHub OAuth2: {0}")] + #[error("Error while communicating to GitHub OAuth2")] GithubError(#[from] reqwest::Error), #[error("Invalid Authentication credentials")] InvalidCredentialsError,