Fix typo in Dockerfile
parent
0ce38aea97
commit
e7d993abd4
|
@ -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`.
|
||||||
|
|
Loading…
Reference in New Issue