From 551c7003513d57d867cbab183e107fead6a43b99 Mon Sep 17 00:00:00 2001 From: Henrik Jonsson Date: Thu, 26 Jan 2017 06:52:43 +0100 Subject: [PATCH] Use start-tor-browser as ENTRYPOINT Any extra commands given at 'docker run' time should be passed to the script, and onward to the firefox binary: [...] ./firefox --class "Tor Browser" -profile TorBrowser/Data/Browser/profile.default "${@}" --- Dockerfile | 5 ++--- start.sh | 4 ---- 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100755 start.sh diff --git a/Dockerfile b/Dockerfile index 8e63242..32c22e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,6 +50,5 @@ RUN curl --fail -O -sSL ${RELEASE_URL} && \ WORKDIR /usr/local/bin/Browser/Downloads USER user -COPY [ "start.sh", "/usr/local/bin/" ] - -CMD [ "start.sh" ] +ENTRYPOINT ["start-tor-browser"] +CMD [""] diff --git a/start.sh b/start.sh deleted file mode 100755 index f17e043..0000000 --- a/start.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -/usr/local/bin/Browser/start-tor-browser -