All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 58s
Buildkit runs in isolated network and can't access mirrors. Legacy builder uses host daemon directly with registry-mirrors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
14 lines
302 B
Docker
14 lines
302 B
Docker
FROM 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"]
|