summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 7c4c8f7e81ac965aecf162418abf1d40fc8b12a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM debian:bookworm-slim

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        git \
        ca-certificates \
        cgit \
        highlight \
        lighttpd \
    && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/www/html /git

COPY cgitrc /etc/cgitrc
COPY custom.css /var/www/html/custom.css
COPY lighttpd.conf /etc/lighttpd/lighttpd.conf

RUN chown -R www-data:www-data /var/www && \
    chmod -R 755 /var/www

EXPOSE 80

CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]