mirror of
https://github.com/Syfaro/fuzzysearch.git
synced 2024-11-05 14:32:56 +00:00
12 lines
452 B
Docker
12 lines
452 B
Docker
FROM rust:1-slim-buster AS builder
|
|
WORKDIR /src
|
|
ENV SQLX_OFFLINE=true
|
|
RUN apt-get update -y && apt-get install -y libssl-dev pkg-config
|
|
COPY . .
|
|
RUN cargo install --root / --path ./fuzzysearch-ingest-weasyl
|
|
|
|
FROM debian:buster-slim
|
|
RUN apt-get update -y && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
COPY --from=builder /bin/fuzzysearch-ingest-weasyl /bin/fuzzysearch-ingest-weasyl
|
|
CMD ["/bin/fuzzysearch-ingest-weasyl"]
|