Use sparse cargo registry

This commit is contained in:
Alex Page 2023-03-09 17:37:00 -05:00
parent b3bd3b2997
commit 3faa422b90

View file

@ -1,8 +1,9 @@
FROM rust:1 as builder
FROM rust:1.68 as builder
ARG OPENAI_KEY
RUN apt-get update && apt-get --no-install-recommends install -y libopus-dev
WORKDIR /usr/src/myapp
COPY . .
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN cargo install --path .
FROM debian:bullseye-slim