-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (25 loc) · 847 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ARG PKG="wget gcc make binutils libc6-compat g++ openssl-dev openssl curl curl-dev"
ARG VER="5.0.7"
ARG UID=10000
FROM alpine:3.21.0
ARG PKG
ARG VER
ARG UID
COPY ./config.settings /tmp/config.settings
WORKDIR /usr/src/ircd
RUN set -x \
&& apk add --no-cache --virtual build ${PKG} && apk add --no-cache libcurl \
&& 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 \
&& apk del build \
&& 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" ]