mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-10-31 02:08:20 +02:00 
			
		
		
		
	Updated Pipelines and fixed new Hadolints
- Removed azure-pipelines - Updated gh-actions to run `cargo test` per db feature - Fail on warnings by adding `RUSTFLAGS` env - Updated Dockerfile to fix some new hadolint warnings
This commit is contained in:
		| @@ -56,8 +56,8 @@ COPY ./build.rs ./build.rs | ||||
| # Builds your dependencies and removes the | ||||
| # dummy project, except the target folder | ||||
| # This folder contains the compiled dependencies | ||||
| RUN cargo build --features ${DB} --release | ||||
| RUN find . -not -path "./target*" -delete | ||||
| RUN cargo build --features ${DB} --release \ | ||||
|     && find . -not -path "./target*" -delete | ||||
|  | ||||
| # Copies the complete project | ||||
| # To avoid copying unneeded files, use .dockerignore | ||||
| @@ -79,8 +79,10 @@ ENV ROCKET_ENV "staging" | ||||
| ENV ROCKET_PORT=80 | ||||
| ENV ROCKET_WORKERS=10 | ||||
|  | ||||
| # Install needed libraries | ||||
| RUN apt-get update && apt-get install -y \ | ||||
|  | ||||
| # Create data folder and Install needed libraries | ||||
| RUN mkdir /data \ | ||||
|     && apt-get update && apt-get install -y \ | ||||
|     --no-install-recommends \ | ||||
|     openssl \ | ||||
|     ca-certificates \ | ||||
| @@ -90,7 +92,7 @@ RUN apt-get update && apt-get install -y \ | ||||
|     libpq5 \ | ||||
|     && rm -rf /var/lib/apt/lists/* | ||||
|  | ||||
| RUN mkdir /data | ||||
|  | ||||
| VOLUME /data | ||||
| EXPOSE 80 | ||||
| EXPOSE 3012 | ||||
|   | ||||
| @@ -53,8 +53,8 @@ RUN rustup target add x86_64-unknown-linux-musl | ||||
| # Builds your dependencies and removes the | ||||
| # dummy project, except the target folder | ||||
| # This folder contains the compiled dependencies | ||||
| RUN cargo build --features ${DB} --release --target=x86_64-unknown-linux-musl | ||||
| RUN find . -not -path "./target*" -delete | ||||
| RUN cargo build --features ${DB} --release --target=x86_64-unknown-linux-musl \ | ||||
|     && find . -not -path "./target*" -delete | ||||
|  | ||||
| # Copies the complete project | ||||
| # To avoid copying unneeded files, use .dockerignore | ||||
| @@ -77,15 +77,17 @@ ENV ROCKET_PORT=80 | ||||
| ENV ROCKET_WORKERS=10 | ||||
| ENV SSL_CERT_DIR=/etc/ssl/certs | ||||
|  | ||||
| # Install needed libraries | ||||
| RUN apk add --no-cache \ | ||||
|  | ||||
| # Create data folder and Install needed libraries | ||||
| RUN mkdir /data \ | ||||
|     && apk add --no-cache \ | ||||
|         openssl \ | ||||
|         curl \ | ||||
|         dumb-init \ | ||||
|         postgresql-libs \ | ||||
|         ca-certificates | ||||
|  | ||||
| RUN mkdir /data | ||||
|  | ||||
| VOLUME /data | ||||
| EXPOSE 80 | ||||
| EXPOSE 3012 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user