feat(deploy): export domain variables for docker-compose and improve database initialization logic

This commit is contained in:
2026-04-07 14:40:58 -04:00
parent 024bd6e46d
commit 66bfb34d34
3 changed files with 74 additions and 31 deletions
+3 -3
View File
@@ -13,9 +13,9 @@ COPY shared/ ./shared/
COPY services/ ./services/
# Build the LMS service
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/tmp/cargo-target \
RUN --mount=type=cache,id=openccb-cargo-registry,sharing=locked,target=/usr/local/cargo/registry \
--mount=type=cache,id=openccb-cargo-git,sharing=locked,target=/usr/local/cargo/git \
--mount=type=cache,id=openccb-cargo-target-lms,sharing=locked,target=/tmp/cargo-target \
CARGO_TARGET_DIR=/tmp/cargo-target cargo build --release -p lms-service && \
cp /tmp/cargo-target/release/lms-service /usr/src/app/lms-service