| Name | Message | Date |
|---|---|---|
| 📁 assets | 1 month ago | |
| 📁 proto | - | |
| 📁 src | 1 month ago | |
| 📄 .editorconfig | 1 month ago | |
| 📄 .gitignore | 1 month ago | |
| 📄 build.rs | - | |
| 📄 Cargo.lock | 1 month ago | |
| 📄 Cargo.toml | 1 month ago | |
| 📄 Containerfile | 1 month ago | |
| 📄 README.md | 1 month ago |
📄
Containerfile
FROM rust:1.94-slim AS builder WORKDIR /app RUN apt-get update && apt-get install -y protobuf-compiler RUN cargo init --bin --name receipt-printer COPY .editorconfig ./ COPY assets/ ./assets/ COPY proto/ ./proto/ COPY Cargo.toml Cargo.lock ./ RUN cargo build --locked --release COPY build.rs ./ COPY src ./src/ RUN cargo build --locked --release FROM debian:bookworm-slim as runtime WORKDIR /app COPY --from=builder /app/target/release/receipt-printer ./ CMD "/app/receipt-printer"