Page MenuHomePhabricator

No OneTemporary

diff --git a/services/identity/Dockerfile b/services/identity/Dockerfile
index a1b448dd9..72ecc10cf 100644
--- a/services/identity/Dockerfile
+++ b/services/identity/Dockerfile
@@ -1,28 +1,28 @@
FROM rust:1.57
# Create a new user comm and use it to run subsequent commands
RUN useradd -m comm
USER comm
+# The build.rs script depends on rustfmt
+RUN rustup component add rustfmt
+
RUN mkdir -p /home/comm/app/identity
WORKDIR /home/comm/app/identity
RUN cargo init --bin
COPY services/identity/Cargo.toml services/identity/Cargo.lock ./
# Cache build dependencies in a new layer
RUN cargo build --release
RUN rm src/*.rs
COPY services/identity .
# Remove the previously-built binary so that only the application itself is
# rebuilt
RUN rm ./target/release/deps/identity*
-# The build.rs script depends on rustfmt
-RUN rustup component add rustfmt
-
RUN cargo build --release
CMD ["./target/release/identity"]

File Metadata

Mime Type
text/x-diff
Expires
Mon, Dec 23, 7:18 AM (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2690547
Default Alt Text
(942 B)

Event Timeline