From b837348b257ab6a917b9f34185121cc95c6275fe Mon Sep 17 00:00:00 2001
From: Ymage <heltem+git@o2php.com>
Date: Mon, 16 Mar 2020 22:34:59 +0100
Subject: [PATCH] Build as static

---
 docker/Dockerfile.j2 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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.
-- 
GitLab