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.
docker-ircd/atheme/Dockerfile

46 lines
832 B

ARG AT_VERSION=7.2.10-r2
3 years ago
FROM alpine:latest AS builder
ARG AT_VERSION
ARG MK_THREADS
RUN apk --update add \
git
3 years ago
RUN git clone \
-b v${AT_VERSION} \
3 years ago
--depth=1 \
--recurse-submodules \
-j2 \
3 years ago
https://github.com/atheme/atheme.git /atheme-src
WORKDIR /atheme-src
RUN apk add \
g++ \
pkgconfig
RUN ./configure \
--prefix=/srv/atheme \
--sysconfdir=/srv/data/etc \
--enable-fhs-paths \
--localstatedir=/srv/data/var
3 years ago
RUN cd libmowgli-2 && \
git pull origin master
RUN apk add \
make
RUN make -j${MK_THREADS:-$(nproc)} && \
make install && \
mv /srv/data/* /srv/atheme/
3 years ago
FROM alpine:latest
RUN adduser -D atheme
3 years ago
COPY --from=builder --chown=atheme /srv/atheme /srv/atheme
COPY root/ /
ENTRYPOINT ["/entrypoint.sh"]