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.
55 lines
1015 B
55 lines
1015 B
FROM alpine:latest AS builder
|
|
ARG MK_THREADS
|
|
|
|
LABEL maintainer="Meliurwen <meliruwen@gmail.com>"
|
|
|
|
RUN apk --update add git
|
|
|
|
RUN git clone \
|
|
--depth 1 \
|
|
https://github.com/solanum-ircd/solanum.git /solanum-src
|
|
|
|
WORKDIR /solanum-src
|
|
|
|
RUN apk add \
|
|
sqlite-dev \
|
|
automake \
|
|
autoconf \
|
|
libtool
|
|
RUN ./autogen.sh
|
|
|
|
RUN apk add \
|
|
gcc \
|
|
g++ \
|
|
bison \
|
|
flex \
|
|
make \
|
|
mbedtls-dev
|
|
RUN ./configure \
|
|
--prefix=/srv/solanum \
|
|
--sysconfdir=/srv/data/etc \
|
|
--with-logdir=/srv/data/logs \
|
|
--enable-mbedtls
|
|
|
|
RUN apk add \
|
|
util-linux
|
|
RUN make -j${MK_THREADS:-$(nproc)} && \
|
|
make install && \
|
|
mv /srv/data/* /srv/solanum/
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk add --no-cache \
|
|
mbedtls \
|
|
libltdl \
|
|
sqlite-libs \
|
|
&& adduser -D solanum
|
|
|
|
COPY --from=builder --chown=solanum /srv/solanum /srv/solanum
|
|
|
|
COPY root/ /
|
|
|
|
EXPOSE 5000 6665-6669 6697 9999
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|