Skip to content

Commit d94b79d

Browse files
JosemyDuartedaattali
authored andcommitted
Container now have all proper dependencies (daattali#322)
Container was not working because didn't have all dependencies, and change CMD command for ENTRYPOINT.
1 parent 7635cee commit d94b79d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: Dockerfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ FROM jekyll/jekyll
22

33
WORKDIR /srv/jekyll
44
COPY Gemfile .
5+
COPY Gemfile.lock .
56

67
RUN gem install bundler
7-
RUN bundle install --clean --quiet
8+
RUN bundle install --quiet --clean
89

910
EXPOSE 4000
1011

11-
CMD [ "/usr/gem/bin/bundle", "exec", "/usr/local/bundle/bin/jekyll", "serve", "--port", "4000", "--host", "0.0.0.0" ]
12-
13-
STOPSIGNAL 2
12+
ENTRYPOINT ["jekyll", "serve"]

0 commit comments

Comments
 (0)