docker打包项目
创建Dockerfile
# Dockerfile
FROM python:3.9
WORKDIR ./dockertest
VOLUME /root/dockertest
ADD . .
RUN pip install -r requirements.txt
CMD ["python", "main.py"]
# 打包项目
docker build -t vvxsin/weworkbot:latest ./
# 上传
docker push vvxsin/weworkbot:latest
评论区