-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (39 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
47 lines (39 loc) · 1.12 KB
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
47
FROM ruby:4.0.2-slim
ENV DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8 \
EXECJS_RUNTIME=Node \
JEKYLL_ENV=production \
BUNDLE_PATH=/usr/local/bundle
# Install system dependencies
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
imagemagick \
inotify-tools \
locales \
nodejs \
procps \
python3-pip \
zlib1g-dev \
graphviz && \
pip install --no-cache-dir --upgrade --break-system-packages nbconvert && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/* /tmp/*
# Set locale
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
# Working directory
WORKDIR /srv/jekyll
# Copy Gemfile and Gemfile.lock
COPY Gemfile Gemfile.lock /srv/jekyll/
# Install bundler and gems
RUN gem install --no-document bundler jekyll && \
bundle install --jobs 4 --retry 3
# Copy entrypoint
COPY bin/entry_point.sh /tmp/entry_point.sh
RUN chmod +x /tmp/entry_point.sh
EXPOSE 8080
CMD ["/tmp/entry_point.sh"]