mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-10-31 02:08:20 +02:00 
			
		
		
		
	Upd Dockerfiles, crates. Fixed rust 2018 idioms
- Updated crates - Fixed Dockerfiles to build using the rust stable version - Enabled warnings for rust 2018 idioms and fixed them.
This commit is contained in:
		| @@ -115,7 +115,6 @@ EXPOSE 3012 | ||||
| # Copies the files from the context (Rocket.toml file and web-vault) | ||||
| # and the binary from the "build" stage to the current stage | ||||
| WORKDIR / | ||||
| COPY Rocket.toml . | ||||
| COPY --from=vault /web-vault ./web-vault | ||||
| COPY --from=build /app/target/release/vaultwarden . | ||||
|  | ||||
| @@ -125,5 +124,9 @@ COPY docker/start.sh /start.sh | ||||
| HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] | ||||
|  | ||||
| # Configures the startup! | ||||
| # We should be able to remove the dumb-init now with Rocket 0.5 | ||||
| # But the balenalib images have some issues with there entry.sh | ||||
| # See: https://github.com/balena-io-library/base-images/issues/735 | ||||
| # Lets keep using dumb-init for now, since that is working fine. | ||||
| ENTRYPOINT ["/usr/bin/dumb-init", "--"] | ||||
| CMD ["/start.sh"] | ||||
|   | ||||
| @@ -107,7 +107,6 @@ EXPOSE 3012 | ||||
| # Copies the files from the context (Rocket.toml file and web-vault) | ||||
| # and the binary from the "build" stage to the current stage | ||||
| WORKDIR / | ||||
| COPY Rocket.toml . | ||||
| COPY --from=vault /web-vault ./web-vault | ||||
| COPY --from=build /app/target/x86_64-unknown-linux-musl/release/vaultwarden . | ||||
|  | ||||
| @@ -117,5 +116,9 @@ COPY docker/start.sh /start.sh | ||||
| HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] | ||||
|  | ||||
| # Configures the startup! | ||||
| # We should be able to remove the dumb-init now with Rocket 0.5 | ||||
| # But the balenalib images have some issues with there entry.sh | ||||
| # See: https://github.com/balena-io-library/base-images/issues/735 | ||||
| # Lets keep using dumb-init for now, since that is working fine. | ||||
| ENTRYPOINT ["/usr/bin/dumb-init", "--"] | ||||
| CMD ["/start.sh"] | ||||
|   | ||||
| @@ -115,7 +115,6 @@ EXPOSE 3012 | ||||
| # Copies the files from the context (Rocket.toml file and web-vault) | ||||
| # and the binary from the "build" stage to the current stage | ||||
| WORKDIR / | ||||
| COPY Rocket.toml . | ||||
| COPY --from=vault /web-vault ./web-vault | ||||
| COPY --from=build /app/target/release/vaultwarden . | ||||
|  | ||||
| @@ -125,5 +124,9 @@ COPY docker/start.sh /start.sh | ||||
| HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] | ||||
|  | ||||
| # Configures the startup! | ||||
| # We should be able to remove the dumb-init now with Rocket 0.5 | ||||
| # But the balenalib images have some issues with there entry.sh | ||||
| # See: https://github.com/balena-io-library/base-images/issues/735 | ||||
| # Lets keep using dumb-init for now, since that is working fine. | ||||
| ENTRYPOINT ["/usr/bin/dumb-init", "--"] | ||||
| CMD ["/start.sh"] | ||||
|   | ||||
| @@ -107,7 +107,6 @@ EXPOSE 3012 | ||||
| # Copies the files from the context (Rocket.toml file and web-vault) | ||||
| # and the binary from the "build" stage to the current stage | ||||
| WORKDIR / | ||||
| COPY Rocket.toml . | ||||
| COPY --from=vault /web-vault ./web-vault | ||||
| COPY --from=build /app/target/x86_64-unknown-linux-musl/release/vaultwarden . | ||||
|  | ||||
| @@ -117,5 +116,9 @@ COPY docker/start.sh /start.sh | ||||
| HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] | ||||
|  | ||||
| # Configures the startup! | ||||
| # We should be able to remove the dumb-init now with Rocket 0.5 | ||||
| # But the balenalib images have some issues with there entry.sh | ||||
| # See: https://github.com/balena-io-library/base-images/issues/735 | ||||
| # Lets keep using dumb-init for now, since that is working fine. | ||||
| ENTRYPOINT ["/usr/bin/dumb-init", "--"] | ||||
| CMD ["/start.sh"] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user