Skip to content

Commit

Permalink
trying fl0 deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
PXNX committed Nov 28, 2023
1 parent 5e51540 commit 0121809
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --recipe-path recipe.json

COPY . .
RUN cargo build

RUN cargo install sqlx-cli
RUN cargo build --release --locked

COPY migrations migrations

CMD sqlx database create && sqlx migrate run && cargo run --release --locked

FROM rust:1.74-slim AS template-rust
COPY --from=builder /app/target/debug/template-rust /usr/local/bin
ENTRYPOINT ["/usr/local/bin/template-rust"]
COPY --from=builder /app/target/release/c2-rs /usr/local/bin
ENTRYPOINT ["/usr/local/bin/c2-rs"]

0 comments on commit 0121809

Please sign in to comment.