service-gitit/Dockerfile
Glenn dd6e577892
Some checks failed
continuous-integration/drone/push Build is failing
feat: Bump debian & gitit versions
2023-08-28 17:44:14 +02:00

37 lines
845 B
Docker

## Dockerfile for gitit
FROM debian:bookworm-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 --no-install-recommends 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.15.1.0+dfsg-2+b5
RUN apt-get update \
&& apt-cache policy gitit \
&& apt-get install -y --no-install-recommends \
libghc-filestore-data mime-support gitit=$GITIT_VERSION \
openssh-client \
&& 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"]