aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel GarcĂ­a <[email protected]>2020-03-16 23:02:07 +0100
committerGitHub <[email protected]>2020-03-16 23:02:07 +0100
commitdce054e63245161155d446d19f0463a588b46730 (patch)
tree82af40843cbe007d2a08c5dd5c151214dd27e3d7
parent7d9c7017c9f2340ca9886cb47d3a2b544cac89f3 (diff)
parentba725e1c256464620def3146cf3167b37292de0d (diff)
downloadvaultwarden-dce054e63245161155d446d19f0463a588b46730.tar.gz
vaultwarden-dce054e63245161155d446d19f0463a588b46730.zip
Merge pull request #912 from ymage/openssl_as_default
Fix alpine build with openssl crate as default
-rw-r--r--docker/Dockerfile.j23
-rw-r--r--src/main.rs1
2 files changed, 2 insertions, 2 deletions
diff --git a/docker/Dockerfile.j2 b/docker/Dockerfile.j2
index 16f16239..74320c73 100644
--- a/docker/Dockerfile.j2
+++ b/docker/Dockerfile.j2
@@ -35,7 +35,7 @@
# - From the console, with the following commands:
# docker pull bitwardenrs/web-vault:v2.12.0e
# docker image inspect --format "{{.RepoDigests}}" bitwardenrs/web-vault:v2.12.0e
-#
+#
# - To do the opposite, and get the tag from the hash, you can do:
# docker image inspect --format "{{.RepoTags}}" bitwardenrs/web-vault@sha256:feb3f46d15738191b9043be4cdb1be2c0078ed411e7b7be73a2f4fcbca01e13c
{% endraw %}
@@ -71,6 +71,7 @@ RUN rustup set profile minimal
{% if "alpine" in target_file %}
ENV USER "root"
+ENV RUSTFLAGS='-C link-arg=-s'
{% elif "aarch64" in target_file or "armv" in target_file %}
# Install required build libs for {{ package_arch_name }} architecture.
diff --git a/src/main.rs b/src/main.rs
index a8efb1d7..c098ad7d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,7 +1,6 @@
#![feature(proc_macro_hygiene, vec_remove_item, try_trait, ip)]
#![recursion_limit = "256"]
-#[cfg(feature = "openssl")]
extern crate openssl;
#[macro_use]
extern crate rocket;