1
0
Fork 0

Fix typo in Dockerfile

docker
Bo Jeanes 2022-09-12 10:08:36 +10:00
parent 0ce38aea97
commit e7d993abd4
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ WORKDIR /home/rust/modbus-mqtt
ADD --chown=rust:rust Cargo.lock modbus-mqtt/Cargo.toml ./ ADD --chown=rust:rust Cargo.lock modbus-mqtt/Cargo.toml ./
RUN mkdir -p /home/rust/modbus-mqtt/target/release RUN mkdir -p /home/rust/modbus-mqtt/target/release
RUN --mount=type=cache,target=/home/rust/modbus-mqtt/target,sharing=locked \ 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 cargo build --release
# # Delete files & directories which shouldn't exist for the workspace # # Delete files & directories which shouldn't exist for the workspace
@ -26,7 +26,7 @@ ADD --chown=rust:rust . ./
# Build our application. # Build our application.
RUN --mount=type=cache,target=/home/rust/modbus-mqtt/target,sharing=locked \ 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 cargo build --release --offline && mv target/release/modbus-mqtt ./bin
# Now, we need to build our _real_ Docker container, copying in `bump-api`. # Now, we need to build our _real_ Docker container, copying in `bump-api`.