This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# 使用官方Python基础镜像
FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.10-slim-bullseye
# 设置环境变量
ENVPYTHONUNBUFFERED=1\
PYTHONDONTWRITEBYTECODE=1\
PIP_NO_CACHE_DIR=1
# 替换为阿里云镜像源(Debian 11 bullseye)
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list