mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
c2b16c7001
* Remove rails 4.0 from travis build & test on ruby 2.3.0, 2.5.0 * Add minitest gem to rails 3.2 gemfile * Use bundler version 1 for rails 3 & rails 4 * Use bundler 1 for jruby platform * Use bundler 1 on travis because of jruby dependency on bundler 1 * Remove cache & install bundler * [debug] Rvm list to check current ruby version when installing bundler * Uninstall all bundler in travis before_install script * Install gems using bundler 1.0.0 * Use bundle 1.16.1 * Remove bundler from appraisal and gemfiles
49 lines
1.1 KiB
Docker
49 lines
1.1 KiB
Docker
ARG RVM_RUBY_VERSIONS="2.4.0 2.5.0"
|
|
ARG RVM_RUBY_DEFAULT="2.4.0"
|
|
FROM msati/docker-rvm
|
|
|
|
# After Ruby versions are installed we continue as non-root rvm user
|
|
USER ${RVM_USER}
|
|
|
|
LABEL maintainer="AASM"
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
# ~~~~ System locales ~~~~
|
|
RUN apt-get update && apt-get install -y locales && \
|
|
dpkg-reconfigure locales && \
|
|
locale-gen C.UTF-8 && \
|
|
/usr/sbin/update-locale LANG=C.UTF-8 && \
|
|
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \
|
|
locale-gen
|
|
|
|
# Set default locale for the environment
|
|
ENV LC_ALL C.UTF-8
|
|
ENV LANG en_US.UTF-8
|
|
ENV LANGUAGE en_US.UTF-8
|
|
ENV APP_HOME /application
|
|
|
|
# ~~~~ Application dependencies ~~~~
|
|
RUN apt-get update
|
|
RUN apt-get install -y libsqlite3-dev \
|
|
build-essential \
|
|
git
|
|
|
|
# ~~~~ Bundler ~~~~
|
|
RUN gem install bundler
|
|
|
|
WORKDIR $APP_HOME
|
|
RUN mkdir -p $APP_HOME/lib/aasm/
|
|
|
|
COPY Gemfile* $APP_HOME/
|
|
COPY *.gemspec $APP_HOME/
|
|
COPY lib/aasm/version.rb $APP_HOME/lib/aasm/
|
|
|
|
ENV BUNDLE_GEMFILE=$APP_HOME/Gemfile \
|
|
BUNDLE_JOBS=8 \
|
|
BUNDLE_PATH=/bundle
|
|
|
|
RUN bundle install
|
|
|
|
# ~~~~ Import application ~~~~
|
|
COPY . $APP_HOME
|