28 lines
823 B
Docker
28 lines
823 B
Docker
ARG PKG="build-essential pkg-config gdb libssl-dev libpcre2-dev libargon2-0-dev libsodium-dev libc-ares-dev libcurl4-openssl-dev"
|
|
ARG VER="6.1.10"
|
|
ARG UID=10000
|
|
|
|
FROM debian:bookworm
|
|
ARG PKG
|
|
ARG VER
|
|
ARG UID
|
|
|
|
COPY ./config.settings /tmp/config.settings
|
|
|
|
WORKDIR /usr/src/ircd
|
|
RUN set -x \
|
|
&& apt-get install ${PKG} \
|
|
&& wget -O /tmp/unrealircd https://www.unrealircd.org/downloads/unrealircd-${VER}.tar.gz \
|
|
&& tar xvfz /tmp/unrealircd \
|
|
&& cd ./unrealircd-${VER}/ \
|
|
&& cp /tmp/config.settings /usr/src/ircd/unrealircd-${VER}/config.settings \
|
|
&& ./Config -quick \
|
|
&& make -j$(nproc) && make install \
|
|
&& rm -rf /usr/src/ircd \
|
|
&& addgroup -S unreal && adduser -u ${UID} -S unreal -G unreal
|
|
|
|
WORKDIR /ircd
|
|
RUN set -x \
|
|
&& chown -R unreal:unreal /ircd /app
|
|
USER unreal
|
|
CMD ["/bin/sh" ] |