Skip to content

Commit

Permalink
Container now have all proper dependencies (daattali#322)
Browse files Browse the repository at this point in the history
Container was not working because didn't have all dependencies, and change CMD command for ENTRYPOINT.
  • Loading branch information
JosemyDuarte authored and daattali committed Feb 26, 2018
1 parent 7635cee commit d94b79d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ FROM jekyll/jekyll

WORKDIR /srv/jekyll
COPY Gemfile .
COPY Gemfile.lock .

RUN gem install bundler
RUN bundle install --clean --quiet
RUN bundle install --quiet --clean

EXPOSE 4000

CMD [ "/usr/gem/bin/bundle", "exec", "/usr/local/bundle/bin/jekyll", "serve", "--port", "4000", "--host", "0.0.0.0" ]

STOPSIGNAL 2
ENTRYPOINT ["jekyll", "serve"]

0 comments on commit d94b79d

Please sign in to comment.