Docker file added and readme updated

This commit is contained in:
iamrobins
2022-06-29 23:20:18 +05:30
parent fa7a624f49
commit cc79ae5009
3 changed files with 25 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
.git
.git/
.gitignore
_site
.sass-cache
.DS_Store
_vendor
+11
View File
@@ -0,0 +1,11 @@
FROM ruby:2.7
WORKDIR /home/app
COPY Gemfile* ./
RUN bundle install
COPY . .
CMD [ "bundle", "exec", "jekyll", "serve" ]
+7
View File
@@ -15,6 +15,13 @@ To test locally, run the following in your terminal:
2. `bundle exec jekyll serve` 2. `bundle exec jekyll serve`
3. Open your browser to `localhost:4000` 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 ### 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. 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.