-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be17da4
commit 95bb295
Showing
2 changed files
with
23 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Build | ||
FROM rust:1.75 as builder | ||
|
||
WORKDIR /app | ||
COPY src /app/src | ||
COPY static /app/static | ||
COPY .sqlx /app/.sqlx | ||
COPY build.rs /app/build.rs | ||
COPY Cargo.toml /app/Cargo.toml | ||
COPY Cargo.lock /app/Cargo.lock | ||
|
||
RUN apt update | ||
RUN apt-get install -y libclang-dev cmake | ||
|
||
RUN cargo build --release --bin importer-online --features metrics | ||
|
||
# Runtime | ||
FROM rust:1.75 as runtime | ||
WORKDIR /app | ||
COPY --from=builder /app/target/release/importer-online /app/importer-online | ||
|
||
CMD ["sh", "-c", "/app/importer-online"] |