47 lines
839 B
Text
47 lines
839 B
Text
|
## Dockerfile for gitit
|
||
|
FROM haskell:9.0-slim
|
||
|
WORKDIR /app
|
||
|
RUN mkdir /app/bin \
|
||
|
&& cabal update \
|
||
|
&& cabal install \
|
||
|
--jobs=$(($(nproc) - 1)) \
|
||
|
--prefix=/app \
|
||
|
gitit
|
||
|
|
||
|
#/bin \
|
||
|
# --installdir=/app/bin \
|
||
|
# --libdir=/app/lib \
|
||
|
|
||
|
|
||
|
# 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 \
|
||
|
openssh-client \
|
||
|
mime-support \
|
||
|
&& 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
|
||
|
##
|
||
|
VOLUME ["/data"]
|
||
|
|
||
|
COPY docker-entrypoint.sh /
|
||
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||
|
|
||
|
WORKDIR /data
|
||
|
EXPOSE 5001
|
||
|
|
||
|
CMD ["gitit", "-f", "/data/gitit.conf"]
|
||
|
|