1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-05-15 08:03:56 +00:00

Update rocket to latest master

Downgrade rust version to fix cargo issue
Set rustup profile to minimal
This commit is contained in:
Daniel García 2019-10-24 23:21:04 +02:00
parent 57b1d3f850
commit fccc0a4b05
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
17 changed files with 74 additions and 43 deletions

View file

@ -62,6 +62,8 @@ ENV OPENSSL_LIB_DIR="/usr/lib/aarch64-linux-gnu"
COPY . .
# Build
RUN rustup self update
RUN rustup set profile minimal
RUN rustup target add aarch64-unknown-linux-gnu
RUN cargo build --features ${DB} --release --target=aarch64-unknown-linux-gnu -v

View file

@ -62,6 +62,8 @@ ENV OPENSSL_LIB_DIR="/usr/lib/aarch64-linux-gnu"
COPY . .
# Build
RUN rustup self update
RUN rustup set profile minimal
RUN rustup target add aarch64-unknown-linux-gnu
RUN cargo build --features ${DB} --release --target=aarch64-unknown-linux-gnu -v

View file

@ -41,6 +41,8 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*
# Creates a dummy project used to grab dependencies
RUN rustup self update
RUN rustup set profile minimal
RUN USER=root cargo new --bin app
WORKDIR /app

View file

@ -41,6 +41,8 @@ WORKDIR /app
# To avoid copying unneeded files, use .dockerignore
COPY . .
RUN rustup self update
RUN rustup set profile minimal
RUN rustup target add x86_64-unknown-linux-musl
# Make sure that we actually build the project

View file

@ -41,6 +41,8 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*
# Creates a dummy project used to grab dependencies
RUN rustup self update
RUN rustup set profile minimal
RUN USER=root cargo new --bin app
WORKDIR /app

View file

@ -41,6 +41,8 @@ WORKDIR /app
# To avoid copying unneeded files, use .dockerignore
COPY . .
RUN rustup self update
RUN rustup set profile minimal
RUN rustup target add x86_64-unknown-linux-musl
# Make sure that we actually build the project

View file

@ -41,6 +41,8 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*
# Creates a dummy project used to grab dependencies
RUN rustup self update
RUN rustup set profile minimal
RUN USER=root cargo new --bin app
WORKDIR /app

View file

@ -41,6 +41,8 @@ WORKDIR /app
# To avoid copying unneeded files, use .dockerignore
COPY . .
RUN rustup self update
RUN rustup set profile minimal
RUN rustup target add x86_64-unknown-linux-musl
# Make sure that we actually build the project

View file

@ -62,6 +62,8 @@ ENV OPENSSL_LIB_DIR="/usr/lib/arm-linux-gnueabi"
COPY . .
# Build
RUN rustup self update
RUN rustup set profile minimal
RUN rustup target add arm-unknown-linux-gnueabi
RUN cargo build --features ${DB} --release --target=arm-unknown-linux-gnueabi -v

View file

@ -62,6 +62,8 @@ ENV OPENSSL_LIB_DIR="/usr/lib/arm-linux-gnueabi"
COPY . .
# Build
RUN rustup self update
RUN rustup set profile minimal
RUN rustup target add arm-unknown-linux-gnueabi
RUN cargo build --features ${DB} --release --target=arm-unknown-linux-gnueabi -v

View file

@ -63,6 +63,8 @@ ENV OPENSSL_LIB_DIR="/usr/lib/arm-linux-gnueabihf"
COPY . .
# Build
RUN rustup self update
RUN rustup set profile minimal
RUN rustup target add armv7-unknown-linux-gnueabihf
RUN cargo build --features ${DB} --release --target=armv7-unknown-linux-gnueabihf -v

View file

@ -62,6 +62,8 @@ ENV OPENSSL_LIB_DIR="/usr/lib/arm-linux-gnueabihf"
COPY . .
# Build
RUN rustup self update
RUN rustup set profile minimal
RUN rustup target add armv7-unknown-linux-gnueabihf
RUN cargo build --features ${DB} --release --target=armv7-unknown-linux-gnueabihf -v