From 62b8500aaebcbc6c60671a9f7827a188e66c02cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Garc=C3=ADa?=
 <dani-garcia@users.noreply.github.com>
Date: Mon, 7 Jan 2019 01:36:01 +0100
Subject: [PATCH] Fix missing .env error in Dockerfile, the .env file is not
 needed for the Docker images

---
 Dockerfile         | 3 +--
 Dockerfile.aarch64 | 3 +--
 Dockerfile.alpine  | 3 +--
 Dockerfile.armv7   | 3 +--
 4 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index d0c6f818..623574d1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -76,9 +76,8 @@ VOLUME /data
 EXPOSE 80
 EXPOSE 3012
 
-# Copies the files from the context (env file and web-vault)
+# Copies the files from the context (Rocket.toml file and web-vault)
 # and the binary from the "build" stage to the current stage
-COPY .env .
 COPY Rocket.toml .
 COPY --from=vault /web-vault ./web-vault
 COPY --from=build app/target/release/bitwarden_rs .
diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64
index 8c750dbc..6b8f0e9a 100644
--- a/Dockerfile.aarch64
+++ b/Dockerfile.aarch64
@@ -82,9 +82,8 @@ RUN [ "cross-build-end" ]
 VOLUME /data
 EXPOSE 80
 
-# Copies the files from the context (env file and web-vault)
+# Copies the files from the context (Rocket.toml file and web-vault)
 # and the binary from the "build" stage to the current stage
-COPY .env .
 COPY Rocket.toml .
 COPY --from=vault /web-vault ./web-vault
 COPY --from=build /app/target/aarch64-unknown-linux-gnu/release/bitwarden_rs .
diff --git a/Dockerfile.alpine b/Dockerfile.alpine
index c42d6666..f451e838 100644
--- a/Dockerfile.alpine
+++ b/Dockerfile.alpine
@@ -56,9 +56,8 @@ VOLUME /data
 EXPOSE 80
 EXPOSE 3012
 
-# Copies the files from the context (env file and web-vault)
+# Copies the files from the context (Rocket.toml file and web-vault)
 # and the binary from the "build" stage to the current stage
-COPY .env .
 COPY Rocket.toml .
 COPY --from=vault /web-vault ./web-vault
 COPY --from=build /app/target/x86_64-unknown-linux-musl/release/bitwarden_rs .
diff --git a/Dockerfile.armv7 b/Dockerfile.armv7
index 14a0857f..c5fc9449 100644
--- a/Dockerfile.armv7
+++ b/Dockerfile.armv7
@@ -82,9 +82,8 @@ RUN [ "cross-build-end" ]
 VOLUME /data
 EXPOSE 80
 
-# Copies the files from the context (env file and web-vault)
+# Copies the files from the context (Rocket.toml file and web-vault)
 # and the binary from the "build" stage to the current stage
-COPY .env .
 COPY Rocket.toml .
 COPY --from=vault /web-vault ./web-vault
 COPY --from=build /app/target/armv7-unknown-linux-gnueabihf/release/bitwarden_rs .