generated from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (36 loc) · 982 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ruby:latest
ENV DEBIAN_FRONTEND noninteractive
LABEL MAINTAINER Amir Pourmand
# Install necessary packages
RUN apt-get update -y && apt-get install -y --no-install-recommends \
locales \
imagemagick \
build-essential \
zlib1g-dev \
jupyter-nbconvert \
inotify-tools \
procps \
curl \
nodejs \
npm && \
apt-get clean && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
# Generate locales
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8 \
JEKYLL_ENV=production
# Create the working directory
RUN mkdir /srv/jekyll
WORKDIR /srv/jekyll
# Copy Gemfile and Gemfile.lock
COPY Gemfile* /srv/jekyll/
# Install bundler and dependencies
RUN gem install bundler && \
bundle install --no-cache
EXPOSE 8080
# Copy the entry point script
COPY bin/entry_point.sh /tmp/entry_point.sh
# Set the entry point
CMD ["/tmp/entry_point.sh"]