blob: 2801b33ad4197c128612f164003e7b9572d35083 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
FROM debian:bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cgit \
fcgiwrap \
nginx-light \
spawn-fcgi \
git \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY docker/nginx.conf /etc/nginx/nginx.conf
COPY docker/cgitrc /etc/cgitrc
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh \
&& mkdir -p /run/fcgiwrap /var/cache/nginx /var/lib/git/repos
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
|