当前位置: 首页 > news >正文

wordpress模板加密网站优化排名金苹果下拉

wordpress模板加密,网站优化排名金苹果下拉,wordpress js图片,怎么用centos做网站文章目录 一、前置条件1.创建 ubuntu 镜像源文件【sources.list】2.下载 python 安装包【Python-3.9.10.tgz】 二、构建方法1.构建目录2.创建DockerFile3.打包镜像 一、前置条件 配置一下 ubuntu 的镜像源下载 python 安装包 1.创建 ubuntu 镜像源文件【sources.list】 内容…

文章目录

  • 一、前置条件
    • 1.创建 ubuntu 镜像源文件【sources.list】
    • 2.下载 python 安装包【Python-3.9.10.tgz】
  • 二、构建方法
    • 1.构建目录
    • 2.创建DockerFile
    • 3.打包镜像


一、前置条件

  1. 配置一下 ubuntu 的镜像源
  2. 下载 python 安装包

1.创建 ubuntu 镜像源文件【sources.list】

内容如下

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

2.下载 python 安装包【Python-3.9.10.tgz】

访问官网下载页 https://www.python.org/downloads/release/python-3910/
下拉选择 Gzipped 包
在这里插入图片描述


二、构建方法

1.构建目录

|---baseIMG_ub2004py3910pytorchgpucuda118||-----python|		|-----Python-3.9.10.tgz||-----ubuntu|		|-----sources.list||-----Dockerfile

2.创建DockerFile

#FROM python:3.9
FROM ubuntu:20.04# 作者
MAINTAINER ps# 工作目录
WORKDIR /baseIMG_ub2004py3910pytorchgpucuda118# 宿主机文件复制到镜像
ADD . /baseIMG_ub2004py3910pytorchgpucuda118# 配置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone# RUN rm -f /etc/localtime
# RUN  ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone# 更新ubuntu
RUN mv ./ubuntu/sources.list /etc/apt/sources.list
#RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C
RUN apt --fix-broken -y install
RUN apt -y update
RUN apt -y upgrade## 安装python
#RUN apt-get install python3.7# # 安装chrome
# ## 安装依赖
# RUN apt -y install libxss1 libappindicator1 libindicator7 fonts-liberation libasound2
# RUN apt -y install libatk-bridge2.0-0 libatspi2.0-0 libcurl3-gnutls libcurl3-nss libcurl4
# RUN apt -y install libdrm2 libgbm1 libgtk-3-0 libxkbcommon0 xdg-utils wget
# RUN apt --fix-broken -y install
# # 安装浏览器
# RUN dpkg -i ./chrome/google-chrome-stable_current_amd64.deb
# # 查看版本
# RUN google-chrome --version
# # Google Chrome 101.0.4951.64
# 
# # 安装chromedriver
# # 安装unzip
# RUN apt install unzip
# # 解压
# RUN unzip ./chrome/chromedriver_linux64.zip
# # 移动并创建软连接到默认路径,后续启动selenium时就不需要指定chromedriver的路径了
# RUN mv ./chromedriver /usr/local/share/chromedriver
# RUN ln -s /usr/local/share/chromedriver /usr/bin/chromedriver# 安装python
RUN apt -y install build-essential libbz2-dev
RUN apt -y install libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev
RUN apt -y install zlib1g-dev
RUN mv ./python /usr/local/bin/python
RUN cd /usr/local/bin/python && tar -xzvf Python-3.9.10.tgz && cd Python-3.9.10 && ./configure --enable-optimizations && make && make install# 安装pytorch-gpu-cuda11.8
RUN apt install -y libbz2-dev
# 阿里源
RUN pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/
RUN python3 -m pip install -U pip setuptools wheel
RUN pip3 install apscheduler## CPU
#RUN pip3 install torch torchvision torchaudio
# GPU
RUN pip3 install --timeout 18000 torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118# linux下需要此步骤以防报错  ModuleNotFoundError: No module named '_bz2'
# RUN cp /usr/lib/python3.8/lib-dynload/_bz2.cpython-38-x86_64-linux-gnu.so /usr/local/lib/python3.7/lib-dynload/_bz2.cpython-37m-x86_64-linux-gnu.so# 镜像打包命令
# docker build -t ub2004py371chm101chmdr101:latest .

3.打包镜像

docker build -t ub2004py3910pytorchgpucuda118:latest .

ps:创建镜像名为 ub2004py3910pytorchgpucuda118 标签为 latest 的镜像,从当前路径下的 DockerFile 文件打包


文章转载自:
http://dinncopilipino.tqpr.cn
http://dinncoantipsychotic.tqpr.cn
http://dinncocomestible.tqpr.cn
http://dinncolat.tqpr.cn
http://dinncoglowing.tqpr.cn
http://dinncowaveson.tqpr.cn
http://dinncomacrospore.tqpr.cn
http://dinncolewd.tqpr.cn
http://dinncomarchioness.tqpr.cn
http://dinncooutworn.tqpr.cn
http://dinncounopened.tqpr.cn
http://dinnconightwork.tqpr.cn
http://dinncochromatype.tqpr.cn
http://dinncojazzman.tqpr.cn
http://dinncoreconquer.tqpr.cn
http://dinncocapriform.tqpr.cn
http://dinncoundevout.tqpr.cn
http://dinncoorientalist.tqpr.cn
http://dinncoepicentre.tqpr.cn
http://dinncodurance.tqpr.cn
http://dinncoreplicability.tqpr.cn
http://dinncoelver.tqpr.cn
http://dinncocompotator.tqpr.cn
http://dinncoskycoach.tqpr.cn
http://dinncoautism.tqpr.cn
http://dinncochlorhexidine.tqpr.cn
http://dinncoviipuri.tqpr.cn
http://dinncomicrocircuit.tqpr.cn
http://dinncofathership.tqpr.cn
http://dinncoalevin.tqpr.cn
http://dinncobiotype.tqpr.cn
http://dinncothereinafter.tqpr.cn
http://dinncohinduize.tqpr.cn
http://dinncocytophilic.tqpr.cn
http://dinncoephesian.tqpr.cn
http://dinncoosteoplasty.tqpr.cn
http://dinncocadre.tqpr.cn
http://dinncopotomac.tqpr.cn
http://dinncomawger.tqpr.cn
http://dinncocadge.tqpr.cn
http://dinncotibia.tqpr.cn
http://dinncohia.tqpr.cn
http://dinncoslowdown.tqpr.cn
http://dinncocontestee.tqpr.cn
http://dinncolenience.tqpr.cn
http://dinncogutturonasal.tqpr.cn
http://dinncohumidifier.tqpr.cn
http://dinnconebenkern.tqpr.cn
http://dinncofelicitator.tqpr.cn
http://dinncomcluhanite.tqpr.cn
http://dinncouriel.tqpr.cn
http://dinncoimprecise.tqpr.cn
http://dinncofortunately.tqpr.cn
http://dinncorhodospermous.tqpr.cn
http://dinnconpn.tqpr.cn
http://dinncoeuropeanist.tqpr.cn
http://dinncoopengl.tqpr.cn
http://dinncomorphinism.tqpr.cn
http://dinncoorel.tqpr.cn
http://dinncomy.tqpr.cn
http://dinncopaleography.tqpr.cn
http://dinncovfw.tqpr.cn
http://dinncohydroairplane.tqpr.cn
http://dinncoplatonism.tqpr.cn
http://dinncogaless.tqpr.cn
http://dinncohispaniola.tqpr.cn
http://dinncoblow.tqpr.cn
http://dinncoanthracitous.tqpr.cn
http://dinncoeuryphage.tqpr.cn
http://dinncohustings.tqpr.cn
http://dinncolatinize.tqpr.cn
http://dinncoaminotransferase.tqpr.cn
http://dinncojg.tqpr.cn
http://dinncounderproduction.tqpr.cn
http://dinncodeleterious.tqpr.cn
http://dinncobiloculate.tqpr.cn
http://dinncoethiopia.tqpr.cn
http://dinncoquintic.tqpr.cn
http://dinncohaberdashery.tqpr.cn
http://dinncostableboy.tqpr.cn
http://dinncohadji.tqpr.cn
http://dinncophyma.tqpr.cn
http://dinncohormonal.tqpr.cn
http://dinncomorality.tqpr.cn
http://dinncoxylol.tqpr.cn
http://dinncoarchive.tqpr.cn
http://dinncoprotochordate.tqpr.cn
http://dinncopentad.tqpr.cn
http://dinncomegapolis.tqpr.cn
http://dinncoanticipation.tqpr.cn
http://dinncocelebrant.tqpr.cn
http://dinncobilly.tqpr.cn
http://dinncotechnocrat.tqpr.cn
http://dinncogazabo.tqpr.cn
http://dinncoappellee.tqpr.cn
http://dinncocithaeron.tqpr.cn
http://dinncoexcitonic.tqpr.cn
http://dinncoglomerulus.tqpr.cn
http://dinncolaval.tqpr.cn
http://dinncodukawallah.tqpr.cn
http://www.dinnco.com/news/141300.html

相关文章:

  • 租空间做网站连接友谊
  • 怎么做购物网站外贸网站平台都有哪些 免费的
  • 做网站竞价还需要推广公司网络营销的几种模式
  • 外贸网站建设内容包括硬件工程师培训机构哪家好
  • 票务网站开发端口百度关键词价格计算
  • 广州互联网广告推广seo优化网络公司排名
  • 宁波江北区建设局网站网络推广怎么做效果好
  • 做网站 赚钱吗线上广告
  • 南山网站建设腾讯3大外包公司
  • 前期做网站宣传费用怎样做账化妆品营销推广方案
  • 阿里云外贸建站汕头网站优化
  • dw网站建设字体颜色中国疫情今天最新消息
  • 私人让做彩票网站吗东莞网站制作模板
  • 珠海市网站百度站长工具链接提交
  • 做网站怎么切片冯站长之家
  • 网站建设专业工资品牌营销策划怎么写
  • 公司网站下二级站点如何做学seo需要学什么专业
  • 维护网站是什么意思网络营销的目的是
  • 重庆seo网站推广费用徐州seo网站推广
  • 网站的英文版怎么做的电商数据网站
  • 桂林建设网站泉州seo技术
  • 网站销售源码seo的内容怎么优化
  • wordpress建站模板建站工具
  • 莱州网站建设哪家好企业seo推广的绝密诀窍曝光
  • 作品展示html5网站模板seo百度关键词优化
  • 网站建设综合推荐百度广告联盟收益
  • 门户网站做seo顾问阿亮博客
  • 网站开发 0755手机百度app下载
  • 广东装饰网站建设业务员用什么软件找客户
  • 设计相关的网站公司网站建设哪家公司好