Also include uncompressed option

This commit is contained in:
Daniel García 2020-03-01 01:21:51 +01:00
parent 8cca4f2d1e
commit 38694cc132
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
2 changed files with 5 additions and 6 deletions

View file

@ -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 [""]

View file

@ -1,3 +0,0 @@
<VERSION>
https://github.com/bitwarden/web/releases/tag/<VERSION>