You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
598 B
27 lines
598 B
FROM nginx:alpine
|
|
|
|
LABEL maintainer "jerryaldrichiii@gmail.com"
|
|
|
|
VOLUME ["/srv/git/repos"]
|
|
|
|
RUN apk add --no-cache git fcgiwrap spawn-fcgi highlight py3-markdown py3-docutils py3-pygments
|
|
|
|
# nginx:alpine = Alpine 3.11
|
|
RUN apk add --no-cache cgit=1.2.1-r1
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
# Create group so data can be shared/accessed
|
|
RUN addgroup --gid 1000 shared
|
|
RUN adduser nginx shared
|
|
|
|
EXPOSE 8080
|
|
|
|
COPY cgitrc.template /etc/
|
|
RUN touch /etc/cgitrc && chown nginx:nginx /etc/cgitrc
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
USER nginx
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|