Dockerfile for building the web vault #2231

Closed
opened 2025-10-09 17:52:21 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @upUJTGifCXdJnqACJgxz on GitHub.

I've tried to build the web vault unsuccessfully using the latest "ubuntu" and "node" images on Docker Hub. Would it be possible to add a Dockerfile to that repository w/ the build steps?

Log: https://gist.github.com/hb3b/a2aea345abeb1ccc51bed77c9a14b59a

Originally created by @upUJTGifCXdJnqACJgxz on GitHub. I've tried to build the web vault unsuccessfully using the latest "ubuntu" and "node" images on Docker Hub. Would it be possible to add a Dockerfile to that repository w/ the build steps? Log: https://gist.github.com/hb3b/a2aea345abeb1ccc51bed77c9a14b59a
Author
Owner

@dani-garcia commented on GitHub:

That's weird, if you clone https://github.com/bitwarden/web and then do:

npm install
npm run dist

Does that work fine?

@dani-garcia commented on GitHub: That's weird, if you clone https://github.com/bitwarden/web and then do: ``` npm install npm run dist ``` Does that work fine?
Author
Owner

@dani-garcia commented on GitHub:

The web vault is now building with a dockerfile so this can be closed

@dani-garcia commented on GitHub: The web vault is now building with a dockerfile so this can be closed
Author
Owner

@dani-garcia commented on GitHub:

I think it makes sense to keep them here, because anyone building the web vault is doing so to use it with this project, so at least to me it makes sense to keep it all together in one place.

The biggest reason there is a separate repo is mostly because we are already using the releases page for the bitwarden_rs releases and I didn't want to mix and match.

About this issue, I wouldn't mind making a builder image, but I'm not sure how to make it so the compiled vault is moved to the host, and not just kept inside the image, where it would be useless.

@dani-garcia commented on GitHub: I think it makes sense to keep them here, because anyone building the web vault is doing so to use it with this project, so at least to me it makes sense to keep it all together in one place. The biggest reason there is a separate repo is mostly because we are already using the releases page for the bitwarden_rs releases and I didn't want to mix and match. About this issue, I wouldn't mind making a builder image, but I'm not sure how to make it so the compiled vault is moved to the host, and not just kept inside the image, where it would be useless.
Author
Owner

@mprasil commented on GitHub:

Considering we do not directly build Vault for the official images anymore, wouldn't it make more sense to move the build instructions (and this issue) to the other project?

@mprasil commented on GitHub: Considering we do not directly build Vault for the official images anymore, wouldn't it make more sense to move the build instructions (and this issue) to the [other project](https://github.com/dani-garcia/bw_web_builds)?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#2231