浏览代码

Update Dockerfile (#279)

ÁÑÑÍHÌLÅTØR SPÄRK 1 年之前
父节点
当前提交
756c1c4a70
共有 1 个文件被更改,包括 5 次插入 和 8 次删除
  1. 5 8
      Dockerfile

+ 5 - 8
Dockerfile

@@ -1,21 +1,18 @@
 FROM python:slim-bullseye
-
 WORKDIR /wbb
 RUN chmod 777 /wbb
 
 RUN apt-get -qq update && apt-get -qq -y upgrade
 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git gcc build-essential
+ENV PYTHONUNBUFFERED=1
 
-RUN pip3 install -U pip
-COPY requirements.txt .
-RUN pip3 install --no-cache-dir -U -r requirements.txt
+# Copying All Source
+COPY . .
+RUN pip3 install -U pip setuptools wheel && pip3 install --no-cache-dir -U -r requirements.txt
 
 # If u want to use /update feature, uncomment the following and edit
 #RUN git config --global user.email "your_email"
 #RUN git config --global user.name "git_username"
 
-# Copying All Source
-COPY . .
-
 # Starting Bot
-CMD ["python3", "-m", "wbb"]
+ENTRYPOINT ["python3", "-m", "wbb"]