blob: e89b8d3a2deea7995f150d5ccfdd6a26d9dfcdb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
FROM nginx:1.29.7-alpine-slim
ARG DOMAIN=localhost
RUN set -x \
&& apk add --no-cache cgit fcgiwrap envsubst
RUN apk update && apk update
COPY 40-fcgiwrap.sh /docker-entrypoint.d/
RUN chmod +x /docker-entrypoint.d/40-fcgiwrap.sh
COPY cgitrc /etc/
COPY site.template /
RUN sed "s/\$DOMAIN/$DOMAIN/g" /site.template > /etc/nginx/conf.d/default.conf
RUN rm /site.template
RUN addgroup nginx www-data
#RUN sed -i -Ee 's/pid\s+.*;/pid \/tmp\/nginx.pid;/' /etc/nginx/nginx.conf
#RUN sed -i -Ee 's/error_log\s+.*;/error_log \/dev\/stdout;/' /etc/nginx/nginx.conf
#
#USER nginx
|