mirror of
https://github.com/NexVeridian/wikidata-to-surrealdb.git
synced 2025-09-02 09:59:13 +00:00
tests
This commit is contained in:
parent
2edaeef042
commit
e37d413372
14 changed files with 525 additions and 250 deletions
27
DockerFile
27
DockerFile
|
@ -1,27 +0,0 @@
|
|||
FROM rust:bookworm AS builder
|
||||
|
||||
RUN apt-get update && \
|
||||
apt install -y musl-tools musl-dev libssl-dev clang mold
|
||||
|
||||
# RUN curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
|
||||
RUN curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C /usr/local/bin
|
||||
# RUN cargo install cargo-nextest --locked
|
||||
|
||||
WORKDIR /wikidata-to-surrealdb
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN rustup target add x86_64-unknown-linux-musl && rustup update && cargo update
|
||||
|
||||
RUN --mount=type=cache,target=/usr/local/cargo,from=rust,source=/usr/local/cargo \
|
||||
--mount=type=cache,target=./target \
|
||||
cargo build --target x86_64-unknown-linux-musl --release && \
|
||||
cp ./target/target/x86_64-unknown-linux-musl/release/wikidata-to-surrealdb .
|
||||
|
||||
FROM alpine:latest AS main
|
||||
|
||||
# WORKDIR /wikidata-to-surrealdb
|
||||
|
||||
COPY --from=builder wikidata-to-surrealdb/wikidata-to-surrealdb .
|
||||
|
||||
CMD ["./wikidata-to-surrealdb"]
|
Loading…
Add table
Add a link
Reference in a new issue