代码拉取完成,页面将自动刷新
FROM cm2network/steamcmd:root
RUN usermod -aG root steam
# 更新源
RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get clean && \
apt-get update -y && \
apt-get upgrade -y
# 校准服务器时间
ENV TZ=Asia/Shanghai
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN apt-get install tzdata
# 安装系统 GBK 和 UTF-8 中文语言包
RUN apt-get install -y locales && \
echo 'zh_CN.GBK GBK' >> /etc/locale.gen && \
echo 'zh_CN.UTF-8 UTF-8' >> /etc/locale.gen && \
echo "LANG=zh_CN.UTF-8" >> /etc/environment && \
locale-gen
# 安装系统必要组件
RUN apt-get install -y curl wget vim zip unzip git telnet net-tools cron logrotate rsyslog tofrodos procps screen
RUN apt-get install -y python3 python3-pip
RUN ln -s /usr/bin/python3 /usr/bin/python && \
ln -s /usr/bin/todos /usr/bin/unix2dos && \
ln -s /usr/bin/fromdos /usr/bin/dos2unix
RUN python -m pip install --upgrade pip
# 添加 ARK 启动脚本
RUN mkdir -p /home/steam/bin
ADD ./bin/ark.sh /home/steam/bin/ark.sh
# 入口
WORKDIR /home/steam
RUN echo "alias ll='ls -al'" >> /root/.bashrc && \
echo "alias ll='ls -al'" >> /home/steam/.bashrc
ADD ./docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod a+x /docker-entrypoint.sh
ENTRYPOINT [ "/docker-entrypoint.sh" ]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。