From ac8e5506a5a96c25d20cd6f0474ba4b76376f3ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Sun, 4 Mar 2018 11:28:34 +0100 Subject: [PATCH] Improve handling of bash history --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 97e7759..3e451e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,7 +62,12 @@ ENV PYTHONPATH="/usr/local/lib/" \ TFW_TERMINADO_DIR="/tmp/terminado_server" \ TFW_FRONTEND_DIR="/srv/frontend" \ TFW_HISTFILE="/home/${AVATAO_USER}/.bash_history" \ - PROMPT_COMMAND="history -a" + PROMPT_COMMAND="history -a" \ + HISTFILESIZE=1000 \ + HISTSIZE=1000 + +RUN sudo -u ${AVATAO_USER} bash -c 'shopt -s cmdhist' &&\ + sudo -u ${AVATAO_USER} bash -c 'shopt -s histappend' COPY nginx/nginx.conf ${TFW_NGINX_CONF} COPY nginx/components/ ${TFW_NGINX_COMPONENTS}