From 8e1cd84972c5e258c9abe68b89a27ccdbbd90a94 Mon Sep 17 00:00:00 2001 From: Henrik Jonsson Date: Thu, 26 Jan 2017 06:54:25 +0100 Subject: [PATCH] Remove HOME environment variable --- Dockerfile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 32c22e2..ce19abb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,6 @@ ENV TOR_VERSION=6.5a6-hardened \ RELEASE_FILE=tor-browser-linux64-${TOR_VERSION}_ALL.tar.xz \ RELEASE_KEY=0x4E2C6E8793298290 \ RELEASE_URL=https://dist.torproject.org/torbrowser/${TOR_VERSION}/${RELEASE_FILE} \ - HOME=/home/user \ PATH=$PATH:/usr/local/bin/Browser RUN apt-get update && \ @@ -24,13 +23,9 @@ RUN apt-get update && \ libxrender1 \ libxt6 \ xz-utils && \ - rm -rf /var/lib/apt/lists/* - -RUN useradd --create-home --home-dir $HOME user && \ - chown -R user:user $HOME - -WORKDIR /usr/local/bin - + rm -rf /var/lib/apt/lists/* && \ + useradd --create-home --home-dir /home/user user && \ + chown -R user:user /home/user # TODO(hkjn): Stop having gpg import key command separate layer, if we # can figure out why it's flaky and commonly gives "keys: key