Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3509680
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
942 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
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)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment