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ů.
|
- FROM rust:1-bookworm AS builder
- WORKDIR /app
- COPY Cargo.toml Cargo.lock ./
- COPY apps/server ./apps/server
- COPY config ./config
- RUN cargo build --release -p server
-
- FROM debian:bookworm-slim
- RUN apt-get update \
- && apt-get install -y --no-install-recommends ca-certificates \
- && rm -rf /var/lib/apt/lists/*
- WORKDIR /app
- COPY --from=builder /app/target/release/server /usr/local/bin/server
- COPY config ./config
- COPY apps/server/migrations ./apps/server/migrations
- ENV APP_ENV=production
- EXPOSE 8080
- CMD ["server"]
|