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

This commit is contained in:
Geometrically authored and GitHub committed 2021-11-14 16:27:33 -07:00
1 parent d1e4e72693
commit 2dd1496ef4
2 files changed
+7 -1

No files matched your search

+6
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
+1 -1
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,