diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000..97fdcb5070 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +.git +.git/ +.gitignore +_site +.sass-cache +.DS_Store +_vendor \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..2c6f56aa8d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM ruby:2.7 + +WORKDIR /home/app + +COPY Gemfile* ./ + +RUN bundle install + +COPY . . + +CMD [ "bundle", "exec", "jekyll", "serve" ] \ No newline at end of file diff --git a/README.md b/README.md index 342cc52c0c..ac8dafcce3 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,13 @@ To test locally, run the following in your terminal: 2. `bundle exec jekyll serve` 3. Open your browser to `localhost:4000` +### Running locally with Docker + +To test locally with docker, run the following in your terminal after installing docker into your system: + +1. `docker image build -t resume-template .` +2. `docker run --rm --name resume-template -v "$PWD":/home/app --network host resume-template` + ### Customizing First you'll want to fork the repo to your own account. Then clone it locally and customize, or use the GitHub web editor to customize.