Skip to content

Commit

Permalink
GRN2-241: Moved assets precompile to start script (bigbluebutton#927)
Browse files Browse the repository at this point in the history
* Moved assets precompile to start script

* Added curl to image for postgres database
  • Loading branch information
farhatahmad committed Feb 12, 2020
1 parent 734f7a7 commit 42e6e4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,16 @@ RUN bundle config --global frozen 1 \
# Adding project files.
COPY . .

RUN SECRET_KEY_BASE="1" bin/rails assets:precompile

# Remove folders not needed in resulting image
RUN rm -rf tmp/cache app/assets vendor/assets spec
RUN rm -rf tmp/cache spec

############### Build step done ###############

FROM ruby:2.5.1-alpine

# Set a variable for the install location.
ARG RAILS_ROOT=/usr/src/app
ARG PACKAGES="tzdata postgresql-client sqlite-libs nodejs bash"
ARG PACKAGES="tzdata curl postgresql-client sqlite-libs yarn nodejs bash"

ENV RAILS_ENV=production
ENV BUNDLE_APP_CONFIG="$RAILS_ROOT/.bundle"
Expand Down
2 changes: 2 additions & 0 deletions bin/start
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ else
bundle exec rake db:schema:load
fi

bundle exec rake assets:precompile

exec bundle exec puma -C config/puma.rb

0 comments on commit 42e6e4f

Please sign in to comment.