diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..1de5659 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +target \ No newline at end of file diff --git a/.github/workflows/build_docker_image.yml b/.github/workflows/build_docker_image.yml index 629a7b1..682c784 100644 --- a/.github/workflows/build_docker_image.yml +++ b/.github/workflows/build_docker_image.yml @@ -57,7 +57,7 @@ jobs: context: . file: ./docker/build.dockerfile 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 # until it hits GitHub's limit of 5GB. diff --git a/docker/build.dockerfile b/docker/build.dockerfile index dc762f2..893a3a2 100644 --- a/docker/build.dockerfile +++ b/docker/build.dockerfile @@ -6,7 +6,6 @@ COPY . . RUN cargo chef prepare --recipe-path recipe.json FROM chef AS builder - RUN apt-get update \ && apt-get install -y pkg-config libssl-dev \ && rm -rf /var/lib/apt/lists/*