Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions test/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down