Dockerfile 536 B

123456789101112131415161718192021
  1. FROM python: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. RUN pip3 install -U pip
  7. COPY requirements.txt .
  8. RUN pip3 install --no-cache-dir -U -r requirements.txt
  9. # If u want to use /update feature, uncomment the following and edit
  10. #RUN git config --global user.email "your_email"
  11. #RUN git config --global user.name "git_username"
  12. # Copying All Source
  13. COPY . .
  14. # Starting Bot
  15. CMD ["python3", "-m", "wbb"]