aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker/frontend/Dockerfile
blob: 5fb19605a9f2a3b799a23a75dfe176d0cc252531 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM nginx:1

RUN export DEBIAN_FRONTEND=noninteractive && \
    runtime_deps='cgit cmark-gfm fcgiwrap tini' && \
    apt-get update && \
    apt-get install -y --no-install-recommends $runtime_deps && \
    # Install the latest Pygments (so that it would highlight CMakeLists.txt, etc.):
    apt-get install -y --no-install-recommends python3-pip && \
    pip3 install --no-cache-dir pygments~=2.0 && \
    # Replace the theme with the one I like better:
    grep -q -F -- "style='pastie'" /usr/lib/cgit/filters/syntax-highlighting.py && \
    sed -i -e "s/style='pastie'/style='vs'/" -- /usr/lib/cgit/filters/syntax-highlighting.py

COPY ["etc/", "/etc/"]
COPY ["usr/", "/usr/"]
COPY ["cmd.sh", "/"]

ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["/cmd.sh"]