Skip to content

Commit

Permalink
update docker file to include sqlx
Browse files Browse the repository at this point in the history
  • Loading branch information
jowparks committed Oct 8, 2024
1 parent 7716eac commit 53d80db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ FROM rust:latest AS builder
# Set the working directory
WORKDIR /app

# Install sqlx-cli
RUN cargo install sqlx-cli

# Copy the entire workspace
COPY . .

Expand All @@ -27,6 +30,10 @@ COPY --from=builder /app/target/release/dservice /app/dservice
COPY --from=builder /app/target/release/dworker /app/dworker
COPY --from=builder /app/target/release/prover /app/prover

# Copy the sqlx binary from the builder stage
COPY --from=builder /usr/local/cargo/bin/sqlx /app/sqlx
COPY migrations /app/migrations


# Expose necessary ports
EXPOSE 10002 9093 10001 20001
Expand Down

0 comments on commit 53d80db

Please sign in to comment.