m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-17 09:33:38 -05:00
Files
cup/Dockerfile
2024-07-09 16:09:04 +03:00

16 lines
278 B
Docker

FROM rust:alpine AS build
WORKDIR /
RUN apk add musl-dev
RUN USER=root cargo new cup
WORKDIR /cup
COPY Cargo.toml Cargo.lock ./
RUN cargo build --release
COPY src ./src
RUN cargo build --release
FROM scratch
COPY --from=build /cup/target/release/cup /cup
ENTRYPOINT ["/cup"]