forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Docker Problem (alshedivat#1074)
- Loading branch information
1 parent
20cfa50
commit 2d2c3dd
Showing
3 changed files
with
25 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
FROM jekyll/jekyll | ||
FROM bitnami/minideb:latest | ||
Label MAINTAINER Amir Pourmand | ||
#install imagemagick tool for convert command | ||
RUN apk add --no-cache --virtual .build-deps \ | ||
libxml2-dev \ | ||
shadow \ | ||
autoconf \ | ||
g++ \ | ||
make \ | ||
&& apk add --no-cache imagemagick-dev imagemagick | ||
RUN apt-get update -y | ||
# add locale | ||
RUN apt-get -y install locales | ||
# Set the locale | ||
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ | ||
locale-gen | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
# add ruby and jekyll | ||
RUN apt-get install --no-install-recommends ruby-full build-essential zlib1g-dev -y | ||
RUN apt-get install imagemagick -y | ||
RUN apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/ | ||
# ENV GEM_HOME='root/gems' \ | ||
# PATH="root/gems/bin:${PATH}" | ||
RUN gem install jekyll bundler | ||
RUN mkdir /srv/jekyll | ||
ADD Gemfile /srv/jekyll | ||
WORKDIR /srv/jekyll | ||
ADD Gemfile /srv/jekyll/ | ||
RUN bundle install | ||
RUN bundle install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters