Dockerfile in xcflushd-1.0.0 vs Dockerfile in xcflushd-1.1.0

- old
+ new

@@ -5,19 +5,19 @@ # User ARG USER_NAME=user ARG USER_HOME="/home/${USER_NAME}" # Timezone -ARG TZ="Europe/Madrid" +ARG TZ="UTC" RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache \ && echo 'APT {Install-Recommends="false";Install-Suggests="false";};' > /etc/apt/apt.conf.d/no-recommends \ && rm -f /etc/cron.weekly/fstrim \ && rm -f /etc/cron.daily/apt \ && rm -f /etc/cron.daily/dpkg \ && rm -f /etc/cron.daily/passwd \ - && apt-get update -y -q && apt-get install -y -q apt-utils \ + && apt-get update -y -q && apt-get install -y -q apt-utils tzdata \ && apt-get dist-upgrade -y -q \ && apt-get install -y -q sudo cron logrotate wget curl unzip ca-certificates \ iputils-arping inetutils-ping inetutils-telnet net-tools nmap iotop tmux vim \ build-essential git make strace gdb tcpdump autoconf libtool autopoint bison \ libssl-dev libcurl4-openssl-dev libz-dev bash \ @@ -31,10 +31,12 @@ && dpkg-reconfigure --frontend ${DEBIAN_FRONTEND} tzdata \ && apt-get -y -q autoremove --purge \ && chown -R ${USER_NAME}: ${USER_HOME} \ && apt-get -y -q clean +RUN apt-get install -y -q openjdk-8-jre + USER ${USER_NAME} ARG RBENV_ROOT="${USER_HOME}/.rbenv" ARG RBENV_BINPATH="${RBENV_ROOT}/bin" ARG RBENV_PATH="${RBENV_ROOT}/shims:${RBENV_BINPATH}" @@ -94,6 +96,7 @@ RUN chown -R ${USER_NAME}: ${APP_HOME} USER ${USER_NAME} RUN bundle install -CMD bundle exec exe/xcflushd run +ARG JRUBY_EXEC="jruby -Xcompile.invokedynamic=true -J-XX:ReservedCodeCacheSize=256M -J-XX:+UseCodeCacheFlushing -J-Xmn512m -J-Xms2048m -J-Xmx2048m -J-server -J-Djruby.objectspace.enabled=false -J-Djruby.thread.pool.enabled=true -J-Djruby.thread.pool.ttl=600 -J-Djruby.compile.mode=FORCE --server --headless -S" +CMD ${JRUBY_EXEC} bundle exec exe/xcflushd run