Skip to content

Commit

Permalink
Adding dockerfile to build modyo:9
Browse files Browse the repository at this point in the history
  • Loading branch information
khrno committed Dec 2, 2019
1 parent f6a2bb6 commit 606d34f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions 9/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM jruby:9.2.9.0

RUN apt-get update -qq && apt-get dist-upgrade -y

RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -

RUN apt-get install -y build-essential \
nodejs \
zip

ENV GEM_HOME vendor/gem_home
ENV GEM_PATH vendor/gem_home
ENV RAILS_ENV production

RUN mkdir -p $GEM_HOME
RUN jruby -S gem install -i $GEM_HOME --no-rdoc --no-ri bundler -v 1.17.3
RUN bundle config BUNDLE_PATH $GEM_HOME
RUN bundle config BUNDLE_BIN bin
RUN bundle config BUNDLE_DISABLE_SHARED_GEMS true

RUN npm install -g yarn

0 comments on commit 606d34f

Please sign in to comment.