Set up for internal deployment

This commit is contained in:
Kevin McConnell
2024-09-30 16:12:32 +01:00
parent d38bab9664
commit e009874767
7 changed files with 115 additions and 4 deletions
+3 -3
View File
@@ -22,7 +22,7 @@ RUN apt-get update -qq && \
apt-get install --no-install-recommends -y build-essential git libvips pkg-config
# Install application gems
COPY Gemfile Gemfile.lock ./
COPY Gemfile Gemfile.lock .ruby-version ./
RUN bundle install && \
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
bundle exec bootsnap precompile --gemfile
@@ -58,5 +58,5 @@ USER rails:rails
ENTRYPOINT ["/rails/bin/docker-entrypoint"]
# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD ["./bin/rails", "server"]
EXPOSE 80 443
CMD ["./bin/thrust", "./bin/rails", "server"]