Docker: common container Dockerfile
Docker Dockerfile Common container
2023-09-11 14:16:15 时间
ubuntu
fedora
maven
FROM --platform=amd64 maven:3-openjdk-18-slim RUN cd /etc/apt && > sources.list && cat > sources.list <<EOF deb https://mirrors.ustc.edu.cn/debian bullseye main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian bullseye main contrib non-free deb https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main deb-src https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main deb https://mirrors.ustc.edu.cn/debian bullseye-updates main deb-src https://mirrors.ustc.edu.cn/debian bullseye-updates main EOF RUN apt update && apt-get install zip git -y
Python
FROM --platform=amd64 python:3.11.3-bullseye RUN cd /etc/apt && > sources.list && cat > sources.list <<EOF deb https://mirrors.ustc.edu.cn/debian bullseye main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian bullseye main contrib non-free deb https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main deb-src https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main deb https://mirrors.ustc.edu.cn/debian bullseye-updates main deb-src https://mirrors.ustc.edu.cn/debian bullseye-updates main EOF RUN mkdir -pv /etc/xdg/pip && cd /etc/xdg/pip && cat > pip.conf <<EOF [global] index-url=http://mirrors.aliyun.com/pypi/simple extra-index-url=https://pypi.tuna.tsinghua.edu.cn/simple # proxy=http://user:password@proxy_name:port timeout=120 trusted-host=mirrors.aliyun.com quiet=0 verbose=2 [install] ignore-installed=true no-compile=false no-dependencies=false no-warn-script-location=false [freeze] timeout=10 EOF RUN apt update && apt-get install zip git jq -y && mkdir /root/ansible && pip install ansible WORKDIR /root
相关文章
- docker-compose gives ERROR: Cannot locate specified Dockerfile: Dockerfile
- Docker 大热,还不了解 Dockerfile 你就OUT啦~
- 创建自己的Docker基础镜像
- Docker最全教程之Python爬网实战(二十一)
- Docker 大热,还不了解 Dockerfile 你就OUT啦~
- springboot项目改造成springcloud微服务并docker部署
- Docker 常用命令
- Docker容器(六)——创建docker私有化仓库
- Docker环境搭建与使用:docker容器连接
- Docker的安装
- 转 Dockerfile 常用指令 - 每天5分钟玩转 Docker 容器技术(16)
- Spring Boot 2 实战:结合 Docker 容器化
- Docker之Dockerfile简介
- 【Docker】Docker镜像是什么?浅谈对Docker镜像的理解
- 浅析Docker Compose学习及docker-compose.yml配置文件参数介绍
- Docker Compose入门指南
- 验证kubectl top结果和docker stats结果符合预期
- k8s 传参给docker env command、args和dockerfile中的entrypoint、cmd之间的关系
- Docker+Selenium Grid+Python搭建分布式测试环境
- Jenkins docker 一键发布 (一)
- 使用docker部署微服务
- Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock
- manjaro docker install ros2 in raspberry pi4B 使用Docker安装ROS2 (ros-humble) 并开启对Wayland的支持