From 19406f809a4d5c40c59683ac403ae86e262fa8a7 Mon Sep 17 00:00:00 2001 From: Eric Kidd Date: Sun, 17 Apr 2016 06:36:11 -0400 Subject: [PATCH] Remove the VOLUME declaration In the use cases where we want this, it needs to be specified on the command-line anyway. In the use cases where we don't want--such as ADDing the source to the builder image for a cross-machine build--we don't want it at all. So don't declare it. --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d1e28c7..61f045a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,7 +46,6 @@ RUN rm -rf /musl # Mount the source code we want to build on /home/rust/src. We do this as # user `rust`, which will be uid 1000, gid 1000 outside the container. -VOLUME ["/home/rust/src"] USER rust WORKDIR /home/rust/src