Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Update deployment Dockerfile
Browse files Browse the repository at this point in the history
- 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
scottnuma committed Jun 30, 2018
1 parent 60f7d6f commit 2a43b97
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
_site
README.md
Dockerfile
docker-build.sh
18 changes: 14 additions & 4 deletions Dockerfile
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"]

0 comments on commit 2a43b97

Please sign in to comment.