forked from tomzo/docker-gitit
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (37 loc) · 1.17 KB
/
Dockerfile
File metadata and controls
45 lines (37 loc) · 1.17 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
FROM phusion/baseimage:18.04-1.0.0-amd64
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y \
gitit \
graphviz \
lmodern \
mime-support \
pandoc-data \
texlive \
texlive-latex-extra
ARG A_GITIT_THEME=flat
ARG A_GITIT_THEME_URL=https://github.com/matthewddunlap/gitit-bootstrap-theme
ARG A_GITIT_THEME_BRANCH=master
ARG A_GITIT_THEME_DIR=/opt/gitit-theme-${A_GITIT_THEME}
RUN git clone --depth 1 -b ${A_GITIT_THEME_BRANCH} ${A_GITIT_THEME_URL} ${A_GITIT_THEME_DIR} && \
bash ${A_GITIT_THEME_DIR}/build.sh
COPY etc /etc/
RUN rm -f /etc/service/sshd/down
ENV MY_DEBUG 0
ENV GIT_COMMITTER_NAME gititt
ENV GIT_COMMITTER_EMAIL gitit@example.com
ENV GITIT_DIRECTORY /gitit
ENV GITIT_REPOSITORY /gitit/wikidata
ENV GITIT_CONF gitit.conf
ENV GITIT_USER gitit
ENV GITIT_GROUP gitit
ENV GITIT_PORT 5001
ENV SSH_PORT 22
ENV SSH_AUTHORIZED_KEYS ${GITIT_REPOSITORY}/authorized_keys
ENV GITIT_THEME ${A_GITIT_THEME}
ENV GITIT_THEME_URL ${A_GITIT_THEME_URL}
ENV GITIT_THEME_BRANCH ${A_GITIT_THEME_BRANCH}
ENV GITIT_THEME_DIR ${A_GITIT_THEME_DIR}
ENV GITIT_THEME_ACTIVE default
CMD ["/sbin/my_init"]
EXPOSE ${GITIT_PORT} ${SSH_PORT}