Changeset View
Changeset View
Standalone View
Standalone View
services/identity/Dockerfile
Show All 18 Lines | |||||
COPY shared/comm-opaque2 ../../shared/comm-opaque2 | COPY shared/comm-opaque2 ../../shared/comm-opaque2 | ||||
# Cache build dependencies in a new layer | # Cache build dependencies in a new layer | ||||
RUN cargo build --release | RUN cargo build --release | ||||
RUN rm src/*.rs | RUN rm src/*.rs | ||||
COPY services/identity . | COPY services/identity . | ||||
COPY shared/protos/identity.proto ../../shared/protos/ | COPY shared/protos/identity.proto ../../shared/protos/ | ||||
COPY shared/protos/identity_client.proto ../../shared/protos/ | |||||
# Remove the previously-built binary so that only the application itself is | # Remove the previously-built binary so that only the application itself is | ||||
# rebuilt | # rebuilt | ||||
RUN rm ./target/release/deps/identity* | RUN rm ./target/release/deps/identity* | ||||
RUN cargo build --release | RUN cargo build --release | ||||
RUN target/release/identity keygen | RUN target/release/identity keygen | ||||
CMD ["./target/release/identity", "server"] | CMD ["./target/release/identity", "server"] |