service-gitit/Dockerfile

37 lines
793 B
Text
Raw Normal View History

2019-02-19 10:05:42 +00:00
## Dockerfile for gitit
FROM debian:stretch-slim
MAINTAINER Glenn Y. Rolland <glenux@glenux.net>
ENV DEBIAN_FRONTEND noninteractive
##
## make the "en_US.UTF-8" locale
##
RUN apt-get update \
&& apt-get install -y locales \
&& rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
##
## install gitit
##
ENV GITIT_VERSION 0.12.1.1+dfsg-6+b3
RUN apt-get update \
&& apt-cache policy gitit \
2019-02-19 10:13:47 +00:00
&& apt-get install -y --no-install-recommends \
libghc-filestore-data mime-support gitit=$GITIT_VERSION \
2019-02-19 10:05:42 +00:00
&& rm -rf /var/lib/apt/lists/*
VOLUME ["/data"]
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
WORKDIR /data
EXPOSE 5001
CMD ["gitit", "-f", "/data/gitit.conf"]