Dockerfile 504 B

12345678910111213141516171819202122
  1. FROM python:3.8-slim as python-base
  2. ENV DOCKER=true
  3. ENV GIT_PYTHON_REFRESH=quiet
  4. ENV PIP_NO_CACHE_DIR=1 \
  5. PYTHONUNBUFFERED=1 \
  6. PYTHONDONTWRITEBYTECODE=1
  7. RUN apt update && apt install libcairo2 git build-essential -y --no-install-recommends
  8. RUN rm -rf /var/lib/apt/lists /var/cache/apt/archives /tmp/*
  9. RUN mkdir /data
  10. COPY . /data/Hikka
  11. WORKDIR /data/Hikka
  12. RUN pip install --no-warn-script-location --no-cache-dir -U -r requirements.txt
  13. EXPOSE 8080
  14. CMD python -m hikka