feat: move assets:precompile to docker preparation instead of at each runtimes
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
4db7b8f3b8
commit
c80d2857cb
@ -17,8 +17,9 @@ RUN apt-get update && \
|
||||
WORKDIR /count_anything
|
||||
COPY Gemfile Gemfile.lock package.json yarn.lock ./
|
||||
RUN bundle install --without development test && \
|
||||
yarn install
|
||||
yarn install && \
|
||||
rails assets:precompile
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD /count_anything/bin/rails assets:precompile && /count_anything/bin/rails db:migrate && /count_anything/bin/rails server
|
||||
CMD /count_anything/bin/rails db:migrate && /count_anything/bin/rails server
|
||||
|
Loading…
Reference in New Issue
Block a user