mirror of
https://github.com/0-8-4/miui-auto-tasks.git
synced 2024-12-01 03:27:49 +00:00
23360a63b2
* fix: 修复无法构建docker镜像的问题 * Update Dockerfile
18 lines
320 B
Docker
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"]
|