2021-02-21 06:26:29 +00:00
|
|
|
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
|
2019-12-18 08:50:07 +00:00
|
|
|
COPY . .
|
2021-02-21 06:26:29 +00:00
|
|
|
RUN cargo install --root / --path ./fuzzysearch-ingest-furaffinity
|
|
|
|
|
2021-04-22 00:53:22 +00:00
|
|
|
FROM debian:buster-slim
|
2021-02-21 06:26:29 +00:00
|
|
|
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"]
|