Skip to content

Commit 53d80db

Browse files
committed
update docker file to include sqlx
1 parent 7716eac commit 53d80db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ FROM rust:latest AS builder
44
# Set the working directory
55
WORKDIR /app
66

7+
# Install sqlx-cli
8+
RUN cargo install sqlx-cli
9+
710
# Copy the entire workspace
811
COPY . .
912

@@ -27,6 +30,10 @@ COPY --from=builder /app/target/release/dservice /app/dservice
2730
COPY --from=builder /app/target/release/dworker /app/dworker
2831
COPY --from=builder /app/target/release/prover /app/prover
2932

33+
# Copy the sqlx binary from the builder stage
34+
COPY --from=builder /usr/local/cargo/bin/sqlx /app/sqlx
35+
COPY migrations /app/migrations
36+
3037

3138
# Expose necessary ports
3239
EXPOSE 10002 9093 10001 20001

0 commit comments

Comments
 (0)