Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
openApi
/
image
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2b50aed3
authored
Dec 12, 2024
by
xuxingxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tmpcode
parent
e9aa9256
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
3 deletions
README
dockerfile
README
View file @
2b50aed3
...
...
@@ -24,4 +24,31 @@ docker run -p 5001:5001 -d -it image_v1:latest bash
6.注意事项
打包需要的磁盘比较多
\ No newline at end of file
打包需要的磁盘比较多
7.docker 的安装
卸载旧版本的Docker(如果有)
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
安装Docker依赖的软件包
sudo yum install -y yum-utils
设置Docker仓库
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
安装Docker Engine(社区版)
sudo yum install docker-ce docker-ce-cli containerd.io
启动Docker服务:
sudo systemctl start docker
使Docker服务开机自启:
sudo systemctl enable docker
验证Docker是否正确安
sudo docker run hello-world
8.安装git
sudo yum install git
dockerfile
View file @
2b50aed3
FROM
registry.cn-shenzhen.aliyuncs.com/xcxiaoan/python:3.11.4-slim
#FROM registry.cn-shenzhen.aliyuncs.com/xcxiaoan/python:3.11.4-slim
FROM
python:3.11.4-slim
RUN
rm
-rf
/admin/app/
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment