From 38694cc132a8d06dd028abf3a64709a99fa156c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Sun, 1 Mar 2020 01:21:51 +0100 Subject: [PATCH] Also include uncompressed option --- Dockerfile | 8 +++++--- release_template.md | 3 --- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 release_template.md diff --git a/Dockerfile b/Dockerfile index 8b85e0c..0cef8d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,8 +41,10 @@ RUN npm run dist RUN mv build web-vault RUN tar -czvf "bw_web_vault.tar.gz" web-vault --owner=0 --group=0 -# We copy the final result as a separate image so there's no need to download all the intermediate steps +# We copy the final result as a separate empty image so there's no need to download all the intermediate steps +# The result is included both uncompressed and as a tar.gz, to be able to use it in the docker images and the github releases directly FROM scratch COPY --from=build /vault/bw_web_vault.tar.gz /bw_web_vault.tar.gz -# Added so docker create works -CMD ["bash"] +COPY --from=build /vault/web-vault /web-vault +# Added so docker create works, can't actually run a scratch image +CMD [""] diff --git a/release_template.md b/release_template.md deleted file mode 100644 index c9e2b3b..0000000 --- a/release_template.md +++ /dev/null @@ -1,3 +0,0 @@ - - -https://github.com/bitwarden/web/releases/tag/ \ No newline at end of file