All checks were successful
continuous-integration/drone/push Build is passing
16 lines
358 B
Docker
16 lines
358 B
Docker
FROM ekidd/rust-musl-builder:nightly-2021-02-13 AS rust-build
|
|
USER root
|
|
|
|
RUN rustup target add x86_64-unknown-linux-musl
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN cargo build --bins --release --target x86_64-unknown-linux-musl
|
|
|
|
FROM alpine:latest
|
|
|
|
WORKDIR /home
|
|
|
|
# Copy Rust artifacts
|
|
COPY --from=rust-build /app/target/x86_64-unknown-linux-musl/release/pixelrush ./app
|