You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
753 B
22 lines
753 B
FROM aeris/cryptcheck AS builder
|
|
MAINTAINER aeris <aeris@imirhil.fr>
|
|
|
|
RUN apk add --update make gcc g++ libxml2-dev yaml-dev zlib-dev nodejs
|
|
|
|
WORKDIR /cryptcheck-rails/
|
|
COPY . /cryptcheck-rails/
|
|
|
|
RUN sed -i "/'therubyracer'/d" Gemfile && \
|
|
sed -i "/^ therubyracer$/d" Gemfile.lock && \
|
|
bundle config --local local.cryptcheck ../cryptcheck && \
|
|
bundle install --deployment --without test development && \
|
|
RAILS_ENV=assets bundle exec rails assets:precompile && \
|
|
rm -rf vendor/bundle && \
|
|
RAILS_ENV=production bundle install --deployment --without test development
|
|
|
|
FROM aeris/cryptcheck AS frontend
|
|
MAINTAINER aeris <aeris@imirhil.fr>
|
|
|
|
ENV RAILS_ENV=production
|
|
WORKDIR /cryptcheck-rails/
|
|
COPY --from=builder /cryptcheck-rails/ /cryptcheck-rails/
|
|
|