passy / golden_retriever

Apache License 2.0
0 stars 0 forks source link

Dockerfile: Set path and target via ENV #21

Closed passy closed 8 years ago

passy commented 8 years ago

Set $PATH and $CARGO_TARGET_DIR via the ENV instruction. This allows us to drop the path from all subsequent RUN and CMD invocations which is quite nice.

By setting a custom $CARGO_TARGET_DIR we avoid trouble with local IDEs and such that would otherwise share the same directory as the container, blocking and invalidating each other.

Jira:^H^H^H^H^H Hahaha, this isn't Gerrit.

daithiocrualaoich commented 8 years ago

No. This is not Gerrit.