Skip to content

Containerize market API rust server#24

Merged
dfayd0 merged 5 commits intomainfrom
20-containerize-market-api-servers
Oct 8, 2025
Merged

Containerize market API rust server#24
dfayd0 merged 5 commits intomainfrom
20-containerize-market-api-servers

Conversation

@dfayd0
Copy link
Member

@dfayd0 dfayd0 commented Oct 7, 2025

No description provided.

@dfayd0 dfayd0 requested a review from guilhem-sante October 7, 2025 17:04
@dfayd0 dfayd0 self-assigned this Oct 7, 2025
@dfayd0 dfayd0 added server Back end related issue rust involving the rust programming language labels Oct 7, 2025
@dfayd0 dfayd0 linked an issue Oct 7, 2025 that may be closed by this pull request
@dfayd0 dfayd0 added the hosting Any issue related to hosting label Oct 7, 2025
Copy link
Member

@guilhem-sante guilhem-sante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Globalement tout est good. Attention juste pour le changement de nom de la section dans le README. Et wtf la fin du Dockerfile.

Sinon, j'ai checke un peu des bests practices de la containerization d'app Rust et il y a moyen de substantiellement écourté le temps de build de ton image avec cargo-chef et encore plus avec d'autres: https://depot.dev/blog/rust-dockerfile-best-practices

&& rm -rf /var/lib/apt/lists/*

COPY Cargo.toml Cargo.lock ./
COPY local ./local
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je crois pas que tu ais besoin de local dans la compilation.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pas sur de comprendre ce comment

@guilhem-sante
Copy link
Member

Sinon tu peux rajouter le prefix docker.io/library/ devant les images externes comme ca:

FROM docker.io/library/rust:1.89-slim-bookworm AS builder

...

FROM docker.io/library/debian:bookworm-slim

ca mange pas de pain et ca precise que tu tires tes images du Docker Hub, c'est un peu plus explicite.

@dfayd0 dfayd0 merged commit ab7ba47 into main Oct 8, 2025
1 check passed
@dfayd0 dfayd0 deleted the 20-containerize-market-api-servers branch October 8, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hosting Any issue related to hosting rust involving the rust programming language server Back end related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Containerize market API servers

2 participants