From d94b79d59d0e80974ca9264f990d1ccfead7964c Mon Sep 17 00:00:00 2001 From: Josemy Duarte Date: Mon, 26 Feb 2018 02:25:21 +0100 Subject: [PATCH] Container now have all proper dependencies (#322) Container was not working because didn't have all dependencies, and change CMD command for ENTRYPOINT. --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 674b60d..74fedf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]