2021-02-21 06:26:29 +00:00
|
|
|
FROM rust:1-slim-buster AS builder
|
2020-01-17 23:13:24 +00:00
|
|
|
WORKDIR /src
|
2021-02-17 21:30:05 +00:00
|
|
|
ENV SQLX_OFFLINE=true
|
2021-02-21 06:26:29 +00:00
|
|
|
RUN apt-get update -y && apt-get install -y libssl-dev pkg-config libavcodec-dev libavformat-dev libavutil-dev libavdevice-dev clang llvm
|
2020-01-17 23:13:24 +00:00
|
|
|
COPY . .
|
2021-02-21 06:26:29 +00:00
|
|
|
RUN cargo install --root / --path ./fuzzysearch
|
2020-01-17 23:13:24 +00:00
|
|
|
|
|
|
|
FROM debian:buster-slim
|
2021-02-17 22:41:55 +00:00
|
|
|
EXPOSE 8080 8081
|
|
|
|
ENV METRICS_HOST=0.0.0.0:8081
|
2020-01-17 23:13:24 +00:00
|
|
|
WORKDIR /app
|
2021-01-22 02:21:16 +00:00
|
|
|
RUN apt-get update -y && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
|
2020-01-17 23:13:24 +00:00
|
|
|
COPY --from=builder /bin/fuzzysearch /bin/fuzzysearch
|
|
|
|
CMD ["/bin/fuzzysearch"]
|