mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-21 19:41:33 +00:00
28 lines
677 B
Docker
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"]
|