|
@@ -23,11 +23,14 @@ RUN ls
|
|
|
########################## BUILD IMAGE ##########################
|
|
########################## BUILD IMAGE ##########################
|
|
|
# We need to use the Rust build image, because
|
|
# We need to use the Rust build image, because
|
|
|
# we need the Rust compiler and Cargo tooling
|
|
# we need the Rust compiler and Cargo tooling
|
|
|
-FROM rust:1.38 as build
|
|
|
|
|
|
|
+FROM rust:1.39 as build
|
|
|
|
|
|
|
|
# set sqlite as default for DB ARG for backward comaptibility
|
|
# set sqlite as default for DB ARG for backward comaptibility
|
|
|
ARG DB=sqlite
|
|
ARG DB=sqlite
|
|
|
|
|
|
|
|
|
|
+# Don't download rust docs
|
|
|
|
|
+RUN rustup set profile minimal
|
|
|
|
|
+
|
|
|
RUN apt-get update \
|
|
RUN apt-get update \
|
|
|
&& apt-get install -y \
|
|
&& apt-get install -y \
|
|
|
--no-install-recommends \
|
|
--no-install-recommends \
|
|
@@ -62,7 +65,7 @@ COPY . .
|
|
|
|
|
|
|
|
# Build
|
|
# Build
|
|
|
RUN rustup target add armv7-unknown-linux-gnueabihf
|
|
RUN rustup target add armv7-unknown-linux-gnueabihf
|
|
|
-RUN cargo build --features ${DB} --release --target=armv7-unknown-linux-gnueabihf -v
|
|
|
|
|
|
|
+RUN cargo build --features ${DB} --release --target=armv7-unknown-linux-gnueabihf
|
|
|
|
|
|
|
|
######################## RUNTIME IMAGE ########################
|
|
######################## RUNTIME IMAGE ########################
|
|
|
# Create a new stage with a minimal image
|
|
# Create a new stage with a minimal image
|