mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-04 22:03:49 +00:00
Revert "Using a more lightweight image and using rvm for ruby"
This reverts commit 621813a015.
I could not get the lightweight docker image working correctly with rvm. I will most likely switch back to this image in the future when I have more time to work on it.
This commit is contained in:
@@ -1,23 +1,13 @@
|
|||||||
FROM phusion/baseimage
|
FROM ruby:2.3.0
|
||||||
ENV RUBYVERSION 2.3.0
|
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
||||||
RUN apt-get install -y build-essential
|
RUN apt-get install -y build-essential
|
||||||
RUN apt-get install -y nodejs sqlite3 curl
|
RUN apt-get install -y nodejs sqlite3
|
||||||
|
|
||||||
ENV WRESTLINGDEV_SECRET_KEY_BASE 077cdbef5c2ccf22543fb17a67339f234306b7fa2e1e4463d851c444c10a5611829a2290b253da78339427f131571fac9a42c83d960b2d25ecc10a4a0a7ce1a2
|
ENV WRESTLINGDEV_SECRET_KEY_BASE 077cdbef5c2ccf22543fb17a67339f234306b7fa2e1e4463d851c444c10a5611829a2290b253da78339427f131571fac9a42c83d960b2d25ecc10a4a0a7ce1a2
|
||||||
ENV WRESTLINGDEV_DEVISE_SECRET_KEY 2f29d49db6704377ba263f7cb9db085b386bcb301c0cd501126a674686ab1a109754071165b08cd72af03cec4642a4dd04361c994462254dd5d85e9594e8b9aa
|
ENV WRESTLINGDEV_DEVISE_SECRET_KEY 2f29d49db6704377ba263f7cb9db085b386bcb301c0cd501126a674686ab1a109754071165b08cd72af03cec4642a4dd04361c994462254dd5d85e9594e8b9aa
|
||||||
|
|
||||||
#Install ruby
|
|
||||||
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
|
|
||||||
RUN \curl -sSL https://get.rvm.io | bash -s stable
|
|
||||||
RUN source /usr/local/rvm/scripts/rvm
|
|
||||||
RUN rvm install $RUBYVERSION
|
|
||||||
RUN rvm rvm --default use $RUBYVERSION
|
|
||||||
ENV PATH /usr/local/rvm/bin:$PATH
|
|
||||||
|
|
||||||
|
|
||||||
RUN gem install --no-rdoc --no-ri bundler
|
RUN gem install --no-rdoc --no-ri bundler
|
||||||
ADD Gemfile* /tmp/
|
ADD Gemfile* /tmp/
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
|
|||||||
@@ -1,18 +1,17 @@
|
|||||||
FROM phusion/baseimage
|
FROM ruby:2.3.0
|
||||||
ENV RUBYVERSION 2.3.0
|
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get -y upgrade
|
RUN apt-get -y upgrade
|
||||||
|
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential libssl-dev libyaml-dev libreadline-dev openssl curl git-core zlib1g-dev bison libxml2-dev libxslt1-dev libcurl4-openssl-dev libsqlite3-dev sqlite3 wget apache2 apt-transport-https nodejs mysql-client postfix
|
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential libssl-dev libyaml-dev libreadline-dev openssl curl git-core zlib1g-dev bison libxml2-dev libxslt1-dev libcurl4-openssl-dev libsqlite3-dev sqlite3 wget apache2 apt-transport-https nodejs mysql-client postfix
|
||||||
|
|
||||||
#Install ruby
|
#New Relic
|
||||||
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
|
#RUN echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list
|
||||||
RUN \curl -sSL https://get.rvm.io | bash -s stable
|
#RUN wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add -
|
||||||
RUN source /usr/local/rvm/scripts/rvm
|
#RUN apt-get update
|
||||||
RUN rvm install $RUBYVERSION
|
#RUN apt-get install newrelic-sysmond -y
|
||||||
RUN rvm rvm --default use $RUBYVERSION
|
#RUN nrsysmond-config --set license_key=$NEW_RELIC_LICENSE_KEY
|
||||||
ENV PATH /usr/local/rvm/bin:$PATH
|
|
||||||
|
|
||||||
#Passenger
|
#Passenger
|
||||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7
|
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7
|
||||||
|
|||||||
Reference in New Issue
Block a user