diff --git a/test/Dockerfile b/test/Dockerfile index 570bd16..29834b5 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -1,11 +1,14 @@ -FROM centos/ruby-22-centos7 +FROM registry.redhat.io/rhscl/ruby-25-rhel7:latest USER default EXPOSE 8080 ENV RACK_ENV production ENV RAILS_ENV production -COPY . /opt/app-root/src/ -RUN scl enable rh-ruby22 "bundle install" -CMD ["scl", "enable", "rh-ruby22", "./run.sh"] +RUN mkdir -p /opt/app-root/src +RUN chmod og+rw /opt/app-root/src +ADD . /opt/app-root/src/. +ENV GEM_HOME ~/.gem +RUN scl enable rh-ruby25 "bundle install" +CMD ["scl", "enable", "rh-ruby25", "./run.sh"] USER root RUN chmod og+rw /opt/app-root/src/db