mirror of
https://github.com/Syfaro/fuzzysearch.git
synced 2024-12-24 22:35:36 +00:00
13 lines
441 B
Docker
13 lines
441 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
|
|
COPY . .
|
|
RUN cargo install --root / --path ./fuzzysearch-webhook
|
|
|
|
FROM debian:buster-slim
|
|
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-webhook /bin/fuzzysearch-webhook
|
|
CMD ["/bin/fuzzysearch-webhook"]
|