1、基础镜像

1. python

  1. FROM python:3.9.9
  2. LABEL maintainer="Geray <1690014753@qq.com>" \
  3. image.authors="geray" \
  4. image.description="Application packaged by Geray" \
  5. image.vendor="VMware, Inc." \
  6. build.date="2022.11.14"
  7. RUN set -x ; \
  8. #
  9. # sed -i 's/http:\/\/deb.debian.org/https:\/\/mirrors.aliyun.com/g' /etc/apt/sources.list ; \
  10. apt-get update ; \
  11. # apt-get -y install automake libtool autoconf libaio libaio-dev make libaio1 ; \
  12. # apt-get -y install libtool libaio-dev libaio1 ; \
  13. apt-get install -y \
  14. jq \
  15. librdkafka-dev \
  16. python3-ldap \
  17. libldap2-dev \
  18. libsasl2-dev \
  19. libsasl2-modules \
  20. zip \
  21. unzip \
  22. ldap-utils ; \
  23. apt-get autoclean; \
  24. rm -rf /var/lib/apt/lists/*
  1. docker buildx build -t geray/python:3.9.9 --platform=linux/arm64 --push .
  1. cat > /etc/apt/sources.list <<EOF
  2. #deb [by-hash=force] https://mirrors.aliyun.com/deepin apricot main contrib non-free
  3. # deb http://snapshot.debian.org/archive/debian/20211220T000000Z bullseye main
  4. deb https://mirrors.aliyun.com/debian bullseye main
  5. # deb http://snapshot.debian.org/archive/debian-security/20211220T000000Z bullseye-security main
  6. deb http://security.debian.org/debian-security bullseye-security main
  7. # deb http://snapshot.debian.org/archive/debian/20211220T000000Z bullseye-updates main
  8. deb https://mirrors.aliyun.com/debian bullseye-updates main
  9. EOF