Skip to content

Commit dc24dd3

Browse files
fix: use vendored openssl in git2
1 parent 42a5d71 commit dc24dd3

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

backend/Cargo.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ tower-http = { version = "0.6.6", features = ["cors", "trace"] }
2121
tracing = "0.1.41"
2222
tracing-subscriber = "0.3.20"
2323
anyhow = "1.0.100"
24-
git2 = "0.20.2"
24+
git2 = { version = "0.20.2", features = ["vendored-openssl"] }

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ WORKDIR /src
55
# Install dependencies
66
RUN apt-get update
77
RUN apt-get install -y build-essential musl-dev musl-tools
8+
RUN rustup target add x86_64-unknown-linux-musl
89

910
# Copy all files
1011
COPY src/ ./src
1112
COPY metaploy/ ./metaploy
1213
COPY Cargo.toml Cargo.lock .
1314

1415
# For static build
15-
RUN rustup target add x86_64-unknown-linux-musl
1616
RUN cargo build --target=x86_64-unknown-linux-musl --release
1717

1818
FROM alpine:latest AS app

0 commit comments

Comments
 (0)