This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
Reference in New Issue
Block a user