mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-08 05:03:49 -05:00
15 lines
259 B
Docker
15 lines
259 B
Docker
FROM rust:alpine AS build
|
|
|
|
RUN apk add musl-dev
|
|
|
|
RUN cargo new cup
|
|
WORKDIR /cup
|
|
COPY Cargo.toml Cargo.lock .
|
|
RUN cargo build --release
|
|
|
|
COPY src ./src
|
|
RUN cargo install --path .
|
|
|
|
FROM scratch
|
|
COPY --from=build /usr/local/cargo/bin/cup /cup
|
|
ENTRYPOINT ["/cup"] |