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.
45 lines
832 B
45 lines
832 B
ARG AT_VERSION=7.2.10-r2
|
|
|
|
FROM alpine:latest AS builder
|
|
ARG AT_VERSION
|
|
ARG MK_THREADS
|
|
|
|
RUN apk --update add \
|
|
git
|
|
RUN git clone \
|
|
-b v${AT_VERSION} \
|
|
--depth=1 \
|
|
--recurse-submodules \
|
|
-j2 \
|
|
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
|
|
|
|
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/
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN adduser -D atheme
|
|
|
|
COPY --from=builder --chown=atheme /srv/atheme /srv/atheme
|
|
|
|
COPY root/ /
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|