Files
expressjs.com/Dockerfile
Jon Church 4c0838e636 docker: match GH page ruby version (#1980)
docker: match GH page ruby version, 3.3.4
2025-08-01 19:07:59 -05:00

28 lines
677 B
Docker

# Match GitHub Pages Ruby version (see https://pages.github.com/versions)
FROM ruby:3.3.4@sha256:d4233f4242ea25346f157709bb8417c615e7478468e2699c8e86a4e1f0156de8
# 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"]