Combine to one ENV command

This commit is contained in:
Henrik Jonsson 2017-01-26 06:50:59 +01:00
parent 3d9ff6974d
commit 44383bdd5d

View File

@ -4,13 +4,14 @@ FROM debian
MAINTAINER Henrik Jonsson <me@hkjn.me> MAINTAINER Henrik Jonsson <me@hkjn.me>
ENV TOR_VERSION 6.5a6-hardened ENV TOR_VERSION=6.5a6-hardened \
# Taken from https://dist.torproject.org/torbrowser/$TOR_VERSION/sha256sums-unsigned-build.txt # Taken from https://dist.torproject.org/torbrowser/$TOR_VERSION/sha256sums-unsigned-build.txt
ENV SHA256_CHECKSUM 03e7107d803af2e8c964980f7cbdb4f18af33e1b07867d8d1084bcede5597189 SHA256_CHECKSUM=03e7107d803af2e8c964980f7cbdb4f18af33e1b07867d8d1084bcede5597189 \
ENV LANG C.UTF-8 LANG=C.UTF-8 \
ENV RELEASE_FILE tor-browser-linux64-${TOR_VERSION}_ALL.tar.xz RELEASE_FILE=tor-browser-linux64-${TOR_VERSION}_ALL.tar.xz \
ENV RELEASE_KEY 0x4E2C6E8793298290 RELEASE_KEY=0x4E2C6E8793298290 \
ENV RELEASE_URL https://dist.torproject.org/torbrowser/${TOR_VERSION}/${RELEASE_FILE} RELEASE_URL=https://dist.torproject.org/torbrowser/${TOR_VERSION}/${RELEASE_FILE} \
HOME=/home/user
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y \ apt-get install -y \
@ -24,7 +25,6 @@ RUN apt-get update && \
xz-utils && \ xz-utils && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
ENV HOME /home/user
RUN useradd --create-home --home-dir $HOME user && \ RUN useradd --create-home --home-dir $HOME user && \
chown -R user:user $HOME chown -R user:user $HOME