-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 677 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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"]