-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
34 lines (34 loc) · 1.61 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
FROM corpusops/ubuntu-bare:20.04
RUN bash -c "\
apt-get update -qq &&\
( apt-get install -y virtualenv || apt-get install -y python-virtualenv ) &&\
apt-get install -y sqlite3 liblcms2-2 liblcms2-dev libcairomm-1.0-dev \
libcairo2-dev libsqlite3-dev apache2-utils autoconf automake build-essential \
bzip2 gettext git groff libbz2-dev libcurl4-openssl-dev libdb-dev libgdbm-dev \
libreadline-dev libfreetype6-dev libsigc++-2.0-dev libsqlite0-dev \
libsqlite3-dev libtiff5 libtiff5-dev libwebp6 libwebp-dev \
libssl-dev libtool libxml2-dev libxslt1-dev libopenjp2-7-dev m4 \
man-db pkg-config poppler-utils python-dev zlib1g-dev \
"
ENV HUGO_THEME hugo-mc-docs
ENV W /s
ENV HUGO_THEME_DIR themes/hugo-mc-docs
ADD ${HUGO_THEME_DIR}/requirements.txt ${W}/${HUGO_THEME_DIR}/requirements.txt
ADD \
${HUGO_THEME_DIR}/bin/install_venv.sh \
${HUGO_THEME_DIR}/bin/install_node.sh \
${HUGO_THEME_DIR}/bin/install_hugo.sh \
${HUGO_THEME_DIR}/bin/install.sh \
${W}/${HUGO_THEME_DIR}/bin/
RUN ${W}/${HUGO_THEME_DIR}/bin/install.sh
# All later adds will not trigger a reinstall accelerating docker builds
ADD config.yaml ${W}/config.yaml
ADD content ${W}/content
ADD i18n ${W}/i18n
ADD data ${W}/data
ADD layouts ${W}/layouts
ADD static ${W}/static
ADD themes ${W}/themes
ADD ${HUGO_THEME_DIR}/bin/control.sh ${W}/${HUGO_THEME_DIR}/bin
WORKDIR /s
RUN ${W}/${HUGO_THEME_DIR}/bin/control.sh infest