-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.ircd
30 lines (26 loc) · 945 Bytes
/
Dockerfile.ircd
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
30
FROM debian:stretch
ENV UNREAL_VERSION="5.2.1.1" \
TERM="vt100" \
LC_ALL=C
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
ca-certificates wget build-essential curl cmake file expect libssl-dev \
supervisor vim gnupg dirmngr \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /var/log/supervisor
RUN groupadd -r ircd && useradd -r -m -g ircd ircd
RUN sed -i '/\[supervisord\]/a nodaemon=true' /etc/supervisor/supervisord.conf
COPY --chown=ircd:ircd ircd_ssl.py /home/ircd/ircd_ssl.py
COPY --chown=ircd:ircd deploy-unrealirc.sh /home/ircd/deploy-unrealirc.sh
RUN chmod +x /home/ircd/deploy-unrealirc.sh
USER ircd
WORKDIR /home/ircd
ENV HOME /home/ircd
RUN /home/ircd/deploy-unrealirc.sh
USER root
COPY supervisor_ircd.conf /etc/supervisor/conf.d/services.conf
COPY unrealircd-entrypoint.sh /entrypoint.sh
EXPOSE 6667 6697
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/bin/supervisord"]