1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/Dockerfile
Guillaume Hain 65073e360a Add support for Nobrainer (RethinkDB)
* Add persistence for NoBrainer
* Add tests for NoBrainer
* Show the ORM version when running the tests
* Add a Dockerfile and a docker-compose.yml file allowing to run from anywhere very easily the test suite with `docker-compose run --rm aasm\'
* Moves the Mongoid database name definition in the gem loader (avoiding code repetition)
* Update the CHANGELOG.md and the README.md files
* Add Rails generator for NoBrainer
2018-02-13 12:49:27 +05:30

44 lines
981 B
Docker

FROM ruby:2.3.4-slim
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