-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (30 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
36 lines (30 loc) · 1.03 KB
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
31
32
33
34
35
36
FROM debian:stretch
MAINTAINER holishing
RUN groupadd --gid 99 bbs \
&& useradd -g bbs -s /bin/bash --uid 9999 bbs \
&& mkdir /home/bbs \
&& chown -R bbs:bbs /home/bbs \
&& rm /etc/localtime \
&& ln -s /usr/share/zoneinfo/Asia/Taipei /etc/localtime
RUN apt update \
&& apt upgrade -y \
&& apt-get install -y --no-install-recommends \
bmake \
ccache \
clang \
curl \
ca-certificates \
gcc-multilib \
lib32ncurses5-dev
USER bbs
ENV HOME=/home/bbs
RUN cd /home/bbs \
&& sh -c "curl -L https://github.com/clamtestbbs/wdbbs/archive/204ffe6740ae7bb4541778064b7a42b0f85b0171.tar.gz | tar -zxv" \
&& mv wdbbs-204ffe6740ae7bb4541778064b7a42b0f85b0171 wdbbs \
&& cd /home/bbs/wdbbs \
&& cp -r sample/bbs /home
COPY file/wdbbs_conf /home/bbs/wdbbs/wdbbs.conf
RUN cd /home/bbs/wdbbs && bmake all install clean
# Notice, in here, mbbsd started service and PROVIDE BIG-5 encoding for users.
CMD ["sh","-c","/home/bbs/bin/mbbsd 8888 && while true; do sleep 10; done"]
EXPOSE 8888