mirror of
https://github.com/Syfaro/fuzzysearch.git
synced 2024-12-25 06:45:35 +00:00
3ade5aeba9
* Initial progress on searching by URL. * Avoid rejections for error messages. * Handle some more rejections. * Fix build issues. * Remove detailed error messages. * Fix issue with built Docker image. * Add rate limit headers to all responses. * Remove unneeded dependency. * Limit URLs to 10MB.
13 lines
380 B
Docker
13 lines
380 B
Docker
FROM rust:1-slim AS builder
|
|
WORKDIR /src
|
|
RUN apt-get update -y && apt-get install -y libssl-dev pkg-config
|
|
COPY . .
|
|
RUN cargo install --root / --path .
|
|
|
|
FROM debian:buster-slim
|
|
EXPOSE 8080
|
|
WORKDIR /app
|
|
RUN apt-get update -y && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
COPY --from=builder /bin/fuzzysearch /bin/fuzzysearch
|
|
CMD ["/bin/fuzzysearch"]
|