This repository has been archived by the owner on May 24, 2021. It is now read-only.
forked from certbot/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
71 lines (61 loc) · 1.8 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM node:8
RUN mkdir /opt/certbot
WORKDIR /opt/certbot
ENV NODE_ENV production
ENV RUBY_VERSION 2.6.3
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES true
# Set UTF-8 character encoding
RUN apt-get update && apt-get install locales -y
RUN echo dpkg-reconfigure -f noninteractive tzdata && \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
echo 'LANG="en_US.UTF-8"'>/etc/default/locale && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL C.UTF-8
# need rsync for deploy script and texlive for building docs
RUN apt-get install -y --no-install-recommends \
imagemagick \
gsfonts \
latexmk \
rsync \
sudo \
texlive \
texlive-latex-extra
# Install ruby and dependencies
RUN echo 'gem: --no-document' >> /usr/local/etc/gemrc &&\
mkdir /src && cd /src && git clone https://github.com/sstephenson/ruby-build.git &&\
cd /src/ruby-build && ./install.sh &&\
cd / && rm -rf /src/ruby-build && ruby-build $RUBY_VERSION /usr/local
RUN gem install jekyll html-proofer
# Install docs dependencies
COPY _docs/ ./_docs
COPY _docs.sh ./
RUN ./_docs.sh depend
# Install js dependencies
COPY package.json ./
RUN npm install gulp-cli -g
RUN npm install
COPY _data ./_data
COPY _faq_entries ./_faq_entries
COPY _gulp ./_gulp
COPY _includes ./_includes
COPY _layouts ./_layouts
COPY _sass ./_sass
COPY _scripts ./_scripts
COPY about ./about
COPY faq ./faq
COPY fonts ./fonts
COPY images ./images
COPY privacy ./privacy
COPY support ./support
COPY _config.yml ./_config.yml
COPY favicon.ico ./favicon.ico
COPY gulpfile.js ./gulpfile.js
COPY index.html ./index.html
COPY certbot-deploy ./certbot-deploy
COPY .git ./.git
COPY .gitmodules ./.gitmodules
RUN gulp build
CMD ["gulp", "jekyll:watch"]