2021-02-21 06:26:29 +00:00
|
|
|
FROM rust:1-slim-buster AS builder
|
2021-02-17 04:43:33 +00:00
|
|
|
WORKDIR /src
|
|
|
|
ENV SQLX_OFFLINE=true
|
|
|
|
RUN apt-get update -y && apt-get install -y libssl-dev pkg-config
|
|
|
|
COPY . .
|
2021-02-21 06:26:29 +00:00
|
|
|
RUN cargo install --root / --path ./fuzzysearch-ingest-e621
|
2021-02-17 04:43:33 +00:00
|
|
|
|
|
|
|
FROM debian:buster-slim
|
|
|
|
EXPOSE 8080
|
|
|
|
ENV METRICS_HOST=0.0.0.0:8080
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update -y && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
|
2021-02-21 06:26:29 +00:00
|
|
|
COPY --from=builder /bin/fuzzysearch-ingest-e621 /bin/fuzzysearch-ingest-e621
|
|
|
|
CMD ["/bin/fuzzysearch-ingest-e621"]
|