RustRover cargo-generate template: Axum + Vue 3 + TypeScript + Tailwind + sqlx
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

19 řádky
520 B

  1. FROM rust:1-bookworm AS builder
  2. WORKDIR /app
  3. COPY Cargo.toml Cargo.lock ./
  4. COPY apps/server ./apps/server
  5. COPY config ./config
  6. RUN cargo build --release -p server
  7. FROM debian:bookworm-slim
  8. RUN apt-get update \
  9. && apt-get install -y --no-install-recommends ca-certificates \
  10. && rm -rf /var/lib/apt/lists/*
  11. WORKDIR /app
  12. COPY --from=builder /app/target/release/server /usr/local/bin/server
  13. COPY config ./config
  14. COPY apps/server/migrations ./apps/server/migrations
  15. ENV APP_ENV=production
  16. EXPOSE 8080
  17. CMD ["server"]