miui-auto-tasks/Dockerfile

18 lines
320 B
Docker
Raw Normal View History

FROM python:alpine
RUN apk add --no-cache gcc musl-dev python3-dev libffi-dev
RUN pip install --no-cache-dir pdm
WORKDIR /srv
COPY ./utils ./utils
COPY ./pyproject.toml ./pdm.lock ./miuitask.py ./
RUN pdm install --prod
VOLUME ["./data", "/srv/data"]
CMD ["pdm", "run", "python", "miuitask.py"]