Dockerfile 561 B

123456789101112131415161718
  1. FROM python:3.12-slim-bullseye
  2. WORKDIR /wbb
  3. RUN chmod 777 /wbb
  4. RUN apt-get -qq update && apt-get -qq -y upgrade
  5. RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git gcc build-essential
  6. ENV PYTHONUNBUFFERED=1
  7. # Copying All Source
  8. COPY . .
  9. RUN pip3 install -U pip setuptools wheel && pip3 install --no-cache-dir -U -r requirements.txt
  10. # If u want to use /update feature, uncomment the following and edit
  11. #RUN git config --global user.email "your_email"
  12. #RUN git config --global user.name "git_username"
  13. # Starting Bot
  14. ENTRYPOINT ["python3", "-m", "wbb"]