Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
FROM ruby:3.2.7
FROM ruby:3.3.4

LABEL maintainer="Ankur Mundra <[email protected]>"
# Install dependencies

# Install necessary system dependencies
RUN apt-get update && \
apt-get install -y curl && \
apt-get install -y \
curl \
build-essential \
libxml2-dev \
libxslt1-dev \
nodejs \
netcat-openbsd && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs && \
apt-get install -y netcat-openbsd
apt-get install -y nodejs

# Set the working directory
WORKDIR /app

# Copy your application files from current location to WORKDIR
# Copy your application files from the current location to WORKDIR
COPY . .

# Install Ruby dependencies
# Install Ruby dependencies (with updated bundler version)
RUN gem update --system && gem install bundler:2.4.7
RUN bundle install
RUN bundle install --jobs 4 --retry 3

EXPOSE 3002
# Expose the necessary port for Rails server
EXPOSE 3002

# Set the entry point
# Set the entry point (run your setup.sh script if needed)
ENTRYPOINT ["/app/setup.sh"]
9 changes: 7 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.2.7'
ruby '3.3.4'

gem 'mysql2', '~> 0.5.5'
gem 'puma', '~> 5.0'
gem 'rails', '~> 8.0', '>= 8.0.1'
gem 'rails', '~> 8.0.2'
gem 'rswag-api'
gem 'rswag-ui'
gem 'nokogiri', '>=1.12.0' # Updated to a more compatible version
gem 'rails-dom-testing', '2.2.0' # Added this gem explicitly



# Build JSON APIs with ease [https://github.com/rails/jbuilder]
# gem "jbuilder"
Expand Down Expand Up @@ -36,6 +40,7 @@ gem 'lingua'
# This is a really small gem that can be used to retrieve objects from the database in the order of the list given
gem 'find_with_order'


group :development, :test do
gem 'debug', platforms: %i[mri mingw x64_mingw]
gem 'factory_bot_rails'
Expand Down
Loading