miui-auto-tasks/Dockerfile
Night-stars-1 23360a63b2
fix: 修复无法构建docker镜像的问题 (#198)
* fix: 修复无法构建docker镜像的问题

* Update Dockerfile
2023-11-23 11:12:11 +11:00

18 lines
320 B
Docker

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"]