ci: 💚 Create master.key, Dockerfile precompile assets, uglifier harmony true
This commit is contained in:
+13
-3
@@ -23,14 +23,24 @@ yarn
|
||||
COPY ./entrypoint.sh /usr/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/bin/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["entrypoint.sh"]
|
||||
|
||||
RUN gem install bundler --version "$BUNDLE_VERSION"
|
||||
|
||||
COPY . .
|
||||
COPY ./Gemfile .
|
||||
COPY ./Gemfile.lock .
|
||||
|
||||
RUN bundle install --jobs 20 --retry 5
|
||||
|
||||
COPY ./package.json .
|
||||
COPY ./yarn.lock .
|
||||
|
||||
RUN yarn
|
||||
|
||||
ENTRYPOINT ["entrypoint.sh"]
|
||||
COPY . .
|
||||
|
||||
CMD ["rails", "s", "-b", "0.0.0.0"]
|
||||
RUN chmod 600 config/master.key
|
||||
|
||||
RUN bundle exec rails assets:precompile
|
||||
|
||||
CMD ["bundle", "exec", "rails", "s", "-b", "0.0.0.0"]
|
||||
Reference in New Issue
Block a user