From f18d2be1ad2a830a8742ab236ab971db0b6adfe5 Mon Sep 17 00:00:00 2001 From: STAM Date: Wed, 2 Oct 2019 01:00:58 +0300 Subject: [PATCH] Update Dockerfile --- _experemental/staytus/Dockerfile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/_experemental/staytus/Dockerfile b/_experemental/staytus/Dockerfile index e5b9e9ea5..e21782baf 100644 --- a/_experemental/staytus/Dockerfile +++ b/_experemental/staytus/Dockerfile @@ -4,21 +4,22 @@ ARG DEBIAN_FRONTEND=noninteractive USER root -RUN apt-get update && \ - export DEBIAN_FRONTEND=noninteractive && \ +RUN apt update && \ + apt dist-upgrade -y && \ # Set password to temp-password - reset to random password on startup echo mysql-server mysql-server/root_password password temp-password | debconf-set-selections && \ echo mysql-server mysql-server/root_password_again password temp-password | debconf-set-selections && \ # Instal MySQL for data, node as the JS engine for uglifier - apt-get install -y mysql-server nodejs && \ - gem update --system 2.6.1 && \ - gem install bundler + apt-get install -y mysql-server nodejs git && \ + gem update --system && \ + gem install bundler && \ + rm -rfv /var/lib/apt/lists/* /tmp/* /var/tmp/* -COPY . /opt/staytus - -RUN cd /opt/staytus && \ && \ - bundle install --deployment --without development:test && \ - rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* +RUN cd /opt && \ + git clone https://github.com/adamcooke/staytus.git staytus && \ + cd /opt/staytus && \ + bundle update --all && \ + bundle install --deployment --without development:test ENTRYPOINT /opt/staytus/docker-start.sh