This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- This build will change how the website is run on the server - The goal is to make deployment identical to local development (even if you don't run in a Docker container)
- Loading branch information
Showing
2 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,3 @@ | |
_site | ||
README.md | ||
Dockerfile | ||
docker-build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
FROM jekyll/jekyll:3.0.2 | ||
FROM ruby:2.5.1-alpine | ||
MAINTAINER Scott Numamoto <scott.numamoto@pioneers.berkeley.edu> | ||
|
||
# Add the enclosing dir to the image at /srv/jekyll | ||
ADD . /srv/jekyll | ||
VOLUME /srv/jekyll | ||
|
||
# Use this folder as dir we will work from | ||
WORKDIR /srv/jekyll | ||
|
||
# Install dependencies | ||
CMD bundle install | ||
|
||
# Build the website | ||
CMD bundle exec jekyll build | ||
|
||
# Expose port 4000, the port Jekyll exposes by default | ||
EXPOSE 4000 | ||
|
||
ENTRYPOINT ["jekyll"] | ||
CMD ["serve"] | ||
# Serve the website when we run the image | ||
ENTRYPOINT ["bundle exec jekyll serve"] |