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.
51 lines
869 B
51 lines
869 B
3 years ago
|
FROM alpine:latest AS builder
|
||
|
|
||
|
LABEL maintainer="Meliurwen <meliruwen@gmail.com>"
|
||
|
|
||
|
RUN apk --update add git
|
||
|
|
||
|
RUN git clone --depth 1 https://github.com/solanum-ircd/solanum.git /solanum
|
||
|
|
||
|
WORKDIR /solanum
|
||
|
|
||
|
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/ircd \
|
||
|
--enable-mbedtls
|
||
|
|
||
|
RUN apk add \
|
||
|
util-linux
|
||
|
RUN ./configure --prefix=/srv/ircd --enable-mbedtls && \
|
||
|
make && \
|
||
|
make install
|
||
|
|
||
|
|
||
|
FROM alpine:latest
|
||
|
|
||
|
RUN apk add --no-cache \
|
||
|
mbedtls \
|
||
|
libltdl \
|
||
|
sqlite-libs \
|
||
|
&& adduser -D ircd
|
||
|
|
||
|
COPY --from=builder --chown=ircd /srv/ircd /srv/ircd
|
||
|
|
||
|
COPY root/ /
|
||
|
|
||
|
EXPOSE 5000 6665-6669 6697 9999
|
||
|
|
||
|
ENTRYPOINT ["/start.sh"]
|