Okteto 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Template
  2. FROM python:3.8-slim-buster as main
  3. # Tell Hikka, that it's running on Okteto
  4. ENV OKTETO=true
  5. # Suppress weird gitpython error
  6. ENV GIT_PYTHON_REFRESH=quiet
  7. # Do not user pip cache dir
  8. ENV PIP_NO_CACHE_DIR=1
  9. # Install mandatory apt packages
  10. RUN apt update && apt install \
  11. libcairo2 git ffmpeg libavcodec-dev \
  12. libavutil-dev libavformat-dev libswscale-dev \
  13. libavdevice-dev -y --no-install-recommends
  14. # Clean the cache
  15. RUN rm -rf /var/lib/apt/lists /var/cache/apt/archives /tmp/*
  16. # Clone the repo
  17. RUN git clone https://github.com/hikariatama/Hikka /Hikka
  18. # Change working directory
  19. WORKDIR /Hikka
  20. # Install mandatory pip requirements
  21. RUN pip install \
  22. --no-warn-script-location \
  23. --no-cache-dir \
  24. -r requirements.txt
  25. # Install non-mandatory pip requirements
  26. # As we are running Okteto, we don't care about resources consuming
  27. RUN pip install \
  28. --no-warn-script-location \
  29. --no-cache-dir \
  30. -r optional_requirements.txt
  31. # Expose IP address
  32. EXPOSE 8080
  33. # Create data dir
  34. RUN mkdir /data
  35. # Run Hikka
  36. CMD ["python3", "-m", "hikka"]