Update cache config

This commit is contained in:
2022-09-14 21:41:38 +03:00
parent f85b03e9d5
commit fbba087ff3
3 changed files with 2 additions and 2 deletions

1
.dockerignore Normal file
View File

@@ -0,0 +1 @@
target

View File

@@ -57,7 +57,7 @@ jobs:
context: . context: .
file: ./docker/build.dockerfile file: ./docker/build.dockerfile
cache-from: type=local,src=/tmp/.buildx-cache cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
# This ugly bit is necessary if you don't want your cache to grow forever # This ugly bit is necessary if you don't want your cache to grow forever
# until it hits GitHub's limit of 5GB. # until it hits GitHub's limit of 5GB.

View File

@@ -6,7 +6,6 @@ COPY . .
RUN cargo chef prepare --recipe-path recipe.json RUN cargo chef prepare --recipe-path recipe.json
FROM chef AS builder FROM chef AS builder
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y pkg-config libssl-dev \ && apt-get install -y pkg-config libssl-dev \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*