Skip to content

Commit

Permalink
Try building both web and worker processes
Browse files Browse the repository at this point in the history
  • Loading branch information
benlovell committed Dec 27, 2024
1 parent 27dffd3 commit 43e31a3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
File renamed without changes.
32 changes: 32 additions & 0 deletions Dockerfile.worker
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM ruby:2.7.7

RUN apt-get update -qq && apt-get install -y build-essential nodejs npm

RUN mkdir /myapp
WORKDIR /myapp

ARG BUNDLE_GEM__FURY__IO
ARG BUNDLE_GEMS__RAILSLTS__COM
ARG BUNDLE_GITHUB__COM

ENV BUNDLE_GEM__FURY__IO ${BUNDLE_GEM__FURY__IO}
ENV BUNDLE_GEMS__RAILSLTS__COM ${BUNDLE_GEMS__RAILSLTS__COM}
ENV BUNDLE_GITHUB__COM ${BUNDLE_GITHUB__COM}

ENV RAILS_ENV production
ENV ALGOLIA_APP_ID NA
ENV ALGOLIA_API_KEY NA
ENV FRONTEND_HTTP_REQUEST_TIMEOUT 10
ENV BUNDLE_WITHOUT test:development

COPY Gemfile* .ruby-version ./
RUN gem install bundler:1.17.3
RUN bundle install -j4 --retry 5
RUN npm install -g bower
COPY . /myapp

RUN rm -rf vendor/assets/bower_components
RUN bundle exec bowndler update --allow-root --production
RUN bundle exec rake assets:precompile

CMD bundle exec rake jobs:work

0 comments on commit 43e31a3

Please sign in to comment.