-
Notifications
You must be signed in to change notification settings - Fork 247
/
Dockerfile
54 lines (46 loc) · 1.01 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
#!/bin/echo docker build . -f
# -*- coding: utf-8 -*-
#
# SPDX-License: ISC
# SPDX-License-URL: https://spdx.org/licenses/ISC.txt
FROM httpd:2.4
LABEL maintainer="Philippe Coval (https://purl.org/rzr)"
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL en_US.UTF-8
ENV LANG ${LC_ALL}
RUN echo "#log: Configuring locales" \
&& set -x \
&& apt-get update \
&& apt-get install -y locales \
&& echo "${LC_ALL} UTF-8" | tee /etc/locale.gen \
&& locale-gen ${LC_ALL} \
&& dpkg-reconfigure locales \
&& sync
RUN echo "#log: Preparing system" \
&& set -x \
&& apt-get update -y \
&& apt-get install -y \
make \
sudo \
emacs \
wget \
git \
unzip \
# EOL
&& sync
ENV project org-reveal
ENV workdir /usr/local/apache2/htdocs/
ADD Makefile ${workdir}/
WORKDIR ${workdir}
RUN echo "#log: Setup ${project}" \
&& set -x \
&& make help \
&& make setup/debian sudo="" \
&& make setup \
&& sync
ADD . ${workdir}/
WORKDIR ${workdir}
RUN echo "#log: Building ${project}" \
&& set -x \
&& make download all \
&& sync