sandbox: add missing apt-get purge
Change-Id: I0e89524ca9ed6b73ef478c32fdb6da7a11cafe76
Reviewed-on: https://go-review.googlesource.com/27319
Reviewed-by: Jessica Frazelle <me@jessfraz.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/sandbox/Dockerfile b/sandbox/Dockerfile
index 43be725..6d5e75f 100644
--- a/sandbox/Dockerfile
+++ b/sandbox/Dockerfile
@@ -37,7 +37,10 @@
# Re-build the Go toolchain.
cd /usr/local/go/src && GOOS=nacl GOARCH=amd64p32 ./make.bash --no-clean && \
- rm -rf $GOROOT_BOOTSTRAP
+
+# Clean up.
+ rm -rf $GOROOT_BOOTSTRAP && \
+ apt-get purge -y --auto-remove $buildDeps
# Add and compile tour packages
RUN set -x && buildDeps='git'; \
@@ -52,7 +55,6 @@
rm -rf $GOPATH/src/golang.org/x/talks/.git && \
apt-get purge -y --auto-remove $buildDeps
-
# Add tour packages under their old import paths (so old snippets still work)
RUN mkdir -p $GOPATH/src/code.google.com/p/go-tour && \
cp -R $GOPATH/src/golang.org/x/tour/* $GOPATH/src/code.google.com/p/go-tour/ && \