Skip to content

Commit

Permalink
docker: bump rust version and diesel_cli
Browse files Browse the repository at this point in the history
  • Loading branch information
naim94a committed Dec 15, 2023
1 parent cf0284f commit 7738a8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM rust:1.68.2-slim-buster
FROM rust:1.74.1-slim-buster
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests ca-certificates pkg-config libssl-dev libpq-dev
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse

RUN --mount=type=cache,target=$CARGO_HOME/registry \
cargo install diesel_cli --version 2.0.1 --no-default-features --features postgres
cargo install diesel_cli --version 2.1.1 --no-default-features --features postgres

COPY common /lumen/common
COPY lumen /lumen/lumen
Expand All @@ -15,7 +15,7 @@ RUN --mount=type=cache,target=$CARGO_HOME/registry,target=/lumen/target \
FROM debian:buster-slim
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests openssl libpq5 && \
sed -i -e 's,\[ v3_req \],\[ v3_req \]\nextendedKeyUsage = serverAuth,' /etc/ssl/openssl.cnf
sed -i -e 's,\[ v3_req \],\[ v3_req \]\nextendedKeyUsage = serverAuth,' /etc/ssl/openssl.cnf
RUN mkdir /usr/lib/lumen/

COPY --from=0 /usr/local/cargo/bin/diesel /usr/bin/diesel
Expand Down

0 comments on commit 7738a8f

Please sign in to comment.