1 Star 0 Fork 1

chiakimio/yobot

forked from fyy12138/yobot 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
FROM python:3.7-slim-buster
LABEL maintainer="AzurCrystal"
ARG PUID=1000
ENV PYTHONIOENCODING=utf-8
RUN set -x \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'Asia/Shanghai' >/etc/timezone \
&& { \
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free"; \
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free"; \
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free"; \
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free"; \
} > /etc/apt/sources.list \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean \
&& apt-get update \
&& apt-get install git -y --no-install-recommends --no-install-suggests \
&& useradd -u $PUID -m yobot \
&& su yobot -c \
"mkdir -p /home/yobot \
&& cd /home/yobot \
&& git clone https://gitee.com/yobot/yobot.git \
&& { \
echo '#!/bin/sh'; \
echo 'cd /home/yobot/yobot/src/client && python3 /home/yobot/yobot/src/client/main.py && sh /home/yobot/yobot/src/client/yobotg.sh'; \
} > /home/yobot/entry.sh \
&& chmod 755 /home/yobot/entry.sh \
&& chmod +x /home/yobot/entry.sh" \
&& pip3 install --no-cache-dir -r /home/yobot/yobot/src/client/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple \
&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
USER yobot
WORKDIR /home/yobot
EXPOSE 9222
VOLUME /home/yobot/yobot
ENTRYPOINT /home/yobot/entry.sh
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chiakimio/yobot.git
git@gitee.com:chiakimio/yobot.git
chiakimio
yobot
yobot
master

搜索帮助