|
|
@ -20,7 +20,7 @@ RUN ls
|
|
|
|
|
|
|
|
|
|
|
|
########################## BUILD IMAGE ##########################
|
|
|
|
########################## BUILD IMAGE ##########################
|
|
|
|
# Musl build image for statically compiled binary
|
|
|
|
# Musl build image for statically compiled binary
|
|
|
|
FROM clux/muslrust:nightly-2018-11-30 as build
|
|
|
|
FROM clux/muslrust:nightly-2018-12-01 as build
|
|
|
|
|
|
|
|
|
|
|
|
ENV USER "root"
|
|
|
|
ENV USER "root"
|
|
|
|
|
|
|
|
|
|
|
@ -30,6 +30,8 @@ WORKDIR /app
|
|
|
|
# To avoid copying unneeded files, use .dockerignore
|
|
|
|
# To avoid copying unneeded files, use .dockerignore
|
|
|
|
COPY . .
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN rustup target add x86_64-unknown-linux-musl
|
|
|
|
|
|
|
|
|
|
|
|
# Build
|
|
|
|
# Build
|
|
|
|
RUN cargo build --release
|
|
|
|
RUN cargo build --release
|
|
|
|
|
|
|
|
|
|
|
|