Fix HTTPS requests not working in the image (#259)

This commit is contained in:
Geometrically 2021-11-14 16:27:33 -07:00 committed by GitHub
parent d1e4e72693
commit 2dd1496ef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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,