-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vitalie
committed
Apr 6, 2023
1 parent
67f1396
commit 2ca1924
Showing
5 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,20 +8,27 @@ COPY . . | |
RUN git describe --always --dirty --tags | tee VERSION | ||
RUN git rev-parse --short HEAD | tee BUILD_SLUG_COMMIT | ||
RUN rm -rf .git | ||
RUN gem update --silent --system 3.3.26 | ||
RUN bundle install --frozen --deployment --without='development test' --clean | ||
RUN bundle exec rake assets:precompile GITHUB_OAUTH_TOKEN=$GITHUB_OAUTH_TOKEN | ||
RUN tar -cjf public.tar.bz2 public && rm -rf public | ||
|
||
|
||
FROM ruby:2.5.8-slim | ||
LABEL maintainer Travis CI GmbH <[email protected]> | ||
|
||
WORKDIR /app | ||
|
||
ENV TRAVIS_BUILD_DUMP_BACKTRACE true | ||
ENV PORT 4000 | ||
|
||
RUN gem update --silent --system 3.3.26 | ||
|
||
COPY --from=builder /app /app | ||
COPY --from=builder /usr/local/bundle/config /usr/local/bundle/config | ||
|
||
HEALTHCHECK --interval=5s CMD script/healthcheck | ||
|
||
EXPOSE 4000/tcp | ||
|
||
CMD ["script/server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -271,5 +271,8 @@ DEPENDENCIES | |
travis-support! | ||
webmock | ||
|
||
RUBY VERSION | ||
ruby 2.5.8p224 | ||
|
||
BUNDLED WITH | ||
1.17.3 | ||
2.3.26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
require 'json' | ||
require 'logger' | ||
require 'tmpdir' | ||
require 'pathname' | ||
require 'date' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters