unwritten-application/Dockerfile

18 lines
281 B
Docker
Raw Permalink Normal View History

2024-12-07 22:41:01 +00:00
FROM docker.io/rust:1-slim-bullseye AS build
WORKDIR /build
ADD Cargo.toml .
ADD Cargo.lock .
ADD src/ src
RUN cargo build --release
FROM docker.io/debian:bullseye-slim
WORKDIR /app
COPY --from=build /build/target/release/unwritten-application unwritten
CMD ["./unwritten"]