Skip to content

Commit 7265913

Browse files
committed
Use openssl
1 parent 303fbb5 commit 7265913

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pretty-bytes = "0.2.2"
2121
rand = "0.8.3"
2222
url = "2.1.0"
2323
hyper-native-tls = { version = "0.3.0", optional = true }
24+
openssl = { version = "0.10", features = ["vendored"], optional = true }
2425
mime_guess = "2.0"
2526
open = "1"
2627
# Iron crates
@@ -33,4 +34,5 @@ path-dedot = "1"
3334

3435
[features]
3536
default = ["tls"]
37+
only-openssl = ["tls", "openssl"]
3638
tls = ["hyper-native-tls"]

docker/Dockerfile.x86_64

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ FROM rust:1.61-alpine3.15 as builder
77
ARG BRANCH
88
RUN apk add --no-cache --virtual .build-deps git make musl-dev openssl-dev perl pkgconfig \
99
&& git clone -b $BRANCH https://github.com/TheWaWaR/simple-http-server.git /simple-http-server \
10-
&& RUSTFLAGS='-C link-arg=-s' cargo build --release --target x86_64-unknown-linux-musl --manifest-path=/simple-http-server/Cargo.toml
10+
&& RUSTFLAGS='-C link-arg=-s' cargo build \
11+
--features only-openssl \
12+
--no-default-features \
13+
--release \
14+
--target x86_64-unknown-linux-musl \
15+
--manifest-path=/simple-http-server/Cargo.toml
1116

1217
FROM gcr.io/distroless/static:nonroot
1318
LABEL maintainer="thewawar <[email protected]>" \

0 commit comments

Comments
 (0)