Skip to content

Commit 964609a

Browse files
committed
fix: copy migrations/ directory into Docker build context
The `sqlx::migrate!("./migrations")` macro requires the `migrations` directory at compile time. The `Dockerfile` was missing a `COPY` for it.
1 parent ed1858b commit 964609a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ COPY ./src ./src
1616
COPY ./benches ./benches
1717
COPY ./crates ./crates
1818
COPY ./tests ./tests
19+
COPY ./migrations ./migrations
1920

2021
# Build the release version of Sprocket
2122
RUN cargo build --release

0 commit comments

Comments
 (0)