Files
expressjs.com/Dockerfile
Shantanu Gupta 477d6ae49e feat: update website to support Ruby 3.3.5 compatibility (from 3.1.1) (#1622)
* feat: update website to support Ruby 3.3.5 compatibility (from 3.3.1)

* Updated the previous commit message to accurately reflect the update from Ruby 3.3.1 to 3.3.5 compatibility.

* changed ruby version file to match the version

* Typo edit: Updated from Ruby 3.1.1 to 3.3.5.

* changed dockerfile to support ruby 3.3.5

* added bundle excel jekyll serve to makefile

* dockerfile now handles gemfile and gemfile lock to process dependencies

* revert: dockerfile now handles gemfile and gemfile lock to process dependencies

* dockerfile now retains gemfile.lock

* adding lock file to match dependency
2024-10-26 09:13:42 -05:00

28 lines
573 B
Docker

# Use the official Ruby image as the base
FROM ruby:3.3.5
# Install Jekyll and Bundler
RUN gem install jekyll bundler
# Set the working directory
WORKDIR /usr/src/app
# Change the permissions of the working directory
RUN chmod 777 /usr/src/app
# Copy the Gemfile into the image
COPY Gemfile ./
COPY Gemfile.lock ./
# Install the gems
RUN bundle install --no-cache
# Copy the rest of the project into the image
COPY . .
# Expose the port Jekyll will run on
EXPOSE 4000
# The default command to run Jekyll
CMD ["jekyll", "serve", "--host", "0.0.0.0", "--livereload"]