Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 14s
Buildkit ignores daemon.json registry-mirrors, so specify mirror directly in FROM statements. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
14 lines
322 B
Docker
14 lines
322 B
Docker
FROM hub.rat.dev/library/python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ \
|
|
&& pip config set install.trusted-host mirrors.aliyun.com
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY monitor.py .
|
|
|
|
CMD ["python", "monitor.py"]
|