16 lines
603 B
Plaintext
16 lines
603 B
Plaintext
VERSION 0.8
|
|
IMPORT github.com/earthly/lib/rust:3.0.1 AS rust
|
|
|
|
FROM rust:slim-bookworm
|
|
WORKDIR /build
|
|
RUN apt-get update && apt-get install -y libacl1-dev && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# build creates the binary target/release/example-rust
|
|
build:
|
|
# CARGO function adds caching to cargo runs.
|
|
# See https://github.com/earthly/lib/tree/main/rust
|
|
DO rust+INIT --keep_fingerprints=true
|
|
COPY --keep-ts --dir src Cargo.lock Cargo.toml .
|
|
DO rust+CARGO --args="build --release" --output="release/[^/\.]+"
|
|
SAVE ARTIFACT target/release/acl-editor AS LOCAL target/release/acl-editor |