33 lines
930 B
Docker
33 lines
930 B
Docker
ARG PKG="build-essential pkg-config gdb libssl-dev libpcre2-dev libargon2-0-dev libsodium-dev libc-ares-dev libcurl4-openssl-dev wget"
|
|
ARG VER="6.1.10"
|
|
ARG GID=10000
|
|
ARG UID=10000
|
|
|
|
FROM debian:bookworm
|
|
ARG PKG
|
|
ARG VER
|
|
ARG GID
|
|
ARG UID
|
|
|
|
COPY ./config.settings /tmp/config.settings
|
|
|
|
WORKDIR /usr/src/ircd
|
|
RUN set -x \
|
|
&& apt-get update \
|
|
&& apt-get install --assume-yes ${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 --gid ${GID} --system unreal \
|
|
&& adduser --uid ${UID} --gid ${GID} --system unreal
|
|
|
|
WORKDIR /ircd
|
|
RUN set -x \
|
|
&& chown -R unreal:unreal /ircd /app
|
|
USER unreal
|
|
CMD ["/bin/sh" ] |