-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: removed sqlx prepare dependency
- Loading branch information
1 parent
34d269c
commit 8693088
Showing
9 changed files
with
49 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Rename this file to .env for development | ||
RUN_MODE=development | ||
# Rename this file to .env for development, DATABASE_URL will be needed by sqlx to run cargo test | ||
RUN_MODE=development | ||
DATABASE_URL=postgres://musicbrainz:musicbrainz@localhost:5432/musicbrainz_db |
23 changes: 0 additions & 23 deletions
23
.sqlx/query-17b362a0a1becd3d5898391d0aec832c33c1a3468aaf10a2fd6fa15712f7a458.json
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
.sqlx/query-1b6ce0be3ef263bb51629e16d33cbcfc63af833ac9b91e50699822261f853e09.json
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
.sqlx/query-a7d1d8e810f22ef8ff0f51ef9fcaaa82b8f24e263761d1329448b48891a50248.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
FROM rust:latest AS builder | ||
FROM metabrainz/base-image:latest | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
RUN apt-get update && \ | ||
apt-get install --no-install-suggests --no-install-recommends -y \ | ||
rustc cargo build-essential unzip curl wget iputils-ping pkg-config libssl-dev \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
ENV RUSTFLAGS='-C target-feature=+crt-static' | ||
ENV SQLX_OFFLINE=true | ||
|
||
RUN cargo build --release --target x86_64-unknown-linux-gnu && \ | ||
cp ./target/x86_64-unknown-linux-gnu/release/mb-ia /mb-ia | ||
FROM scratch | ||
ENV RUN_MODE=production | ||
|
||
WORKDIR /app | ||
COPY --from=builder /mb-ia ./app | ||
|
||
COPY --from=builder /app/config /app/config | ||
|
||
ENV RUN_MODE=production | ||
COPY . . | ||
|
||
CMD ["/app/app"] | ||
RUN cargo build --release --target x86_64-unknown-linux-gnu && \ | ||
cp ./target/x86_64-unknown-linux-gnu/release/mb-ia /app/mb-ia | ||
|
||
CMD ["/app/mb-ia"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters