diff --git a/Dockerfile b/Dockerfile index 3deb1f5..9376a3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ WORKDIR /home/rust/modbus-mqtt ADD --chown=rust:rust Cargo.lock modbus-mqtt/Cargo.toml ./ RUN mkdir -p /home/rust/modbus-mqtt/target/release RUN --mount=type=cache,target=/home/rust/modbus-mqtt/target,sharing=locked \ - --mount-type=cache,target=/usr/local/cargo/registry,sharing=locked \ + --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked \ cargo build --release # # Delete files & directories which shouldn't exist for the workspace @@ -26,7 +26,7 @@ ADD --chown=rust:rust . ./ # Build our application. RUN --mount=type=cache,target=/home/rust/modbus-mqtt/target,sharing=locked \ - --mount-type=cache,target=/usr/local/cargo/registry,sharing=locked \ + --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked \ cargo build --release --offline && mv target/release/modbus-mqtt ./bin # Now, we need to build our _real_ Docker container, copying in `bump-api`.