Dockerfile 404 B

12345678910111213141516171819
  1. FROM python:3.9-slim-stretch
  2. ENV PIP_NO_CACHE_DIR 1
  3. # Pypi package Repo upgrade
  4. RUN pip3 install --upgrade pip setuptools
  5. # copy the dependencies file to the working directory
  6. COPY requirements.txt .
  7. # install dependencies
  8. RUN pip install -r requirements.txt
  9. # copy the content of the local src directory to the working directory
  10. COPY . .
  11. # Starting Worker
  12. CMD ["python3", "-m", "wbb"]
  13. EXPOSE 8000