Sign inSign up

tiger108/python

By tiger108

•Updated over 5 years ago

Image
0

331

tiger108/python repository overview

第一步:制作make镜像:

# 构建镜像
docker build --no-cache -t python3.8 -f Dockerfile-make .
# 开启容器
docker container run python3.8 /bin/bash
# 开启另一个终端
# 查看容器ID
docker ps 
# 将已编译python,拷贝到本地
docker cp [容器ID]:/usr/local/python3 ./python3_lib

第二步:slim镜像:

docker build --no-cache -t tiger108/python:3.8 -f Dockerfile-slim .

Python-3.8.1.tgz下载URL⁠

Centos-7.repo下载URL⁠

Tag summary

Content type

Image

Digest

Size

113.3 MB

Last updated

over 5 years ago

docker pull tiger108/python