diff --git a/Dockerfile b/Dockerfile index 5de5d77..1508fc3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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