mirror of
https://github.com/Syfaro/fuzzysearch.git
synced 2024-11-13 02:12:33 +00:00
15 lines
580 B
Docker
15 lines
580 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 python3 python3-pip
|
|
COPY . .
|
|
RUN cargo install --root / --path ./fuzzysearch-ingest-furaffinity
|
|
|
|
FROM debian:buster-slim
|
|
RUN apt-get update -y && \
|
|
apt-get install -y openssl ca-certificates python3 python3-pip && \
|
|
python3 -m pip --no-cache-dir install cfscrape && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
COPY --from=builder /bin/fuzzysearch-ingest-furaffinity /bin/fuzzysearch-ingest-furaffinity
|
|
CMD ["/bin/fuzzysearch-ingest-furaffinity"]
|