Reduce proto dependencies in proxy/Dockerfile (#765)

Reduce the dependencies on files under proto/ to eliminate Docker
detecting false dependencies that trigger rebuilds.

Signed-off-by: Brian Smith <brian@briansmith.org>
This commit is contained in:
Brian Smith 2018-04-13 14:49:55 -10:00 committed by GitHub
parent 77fb6d3709
commit 0c37067554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -43,8 +43,9 @@ RUN if [ -n "$PROXY_UNOPTIMIZED" ]; \
fi
# Build gRPC bindings, leaving the proxy mocked out.
COPY proto proto
COPY proxy/controller-grpc proxy/controller-grpc
COPY proto/proxy proto/proxy
COPY proto/common proto/common
COPY proxy/controller-grpc proxy/controller-grpc
RUN if [ -n "$PROXY_UNOPTIMIZED" ]; \
then cargo build -p conduit-proxy-controller-grpc --features=arbitrary --locked ; \
else cargo build -p conduit-proxy-controller-grpc --features=arbitrary --locked --release ; \