更新 Dockerfile,调整 pip 安装步骤的位置以确保依赖正确安装;更新 GitHub Actions 工作流,添加空行以提高可读性。
This commit is contained in:
parent
cede6926e5
commit
4bf490e822
1
.github/workflows/docker-build.yml
vendored
1
.github/workflows/docker-build.yml
vendored
@ -13,6 +13,7 @@ jobs:
|
|||||||
- name: Set up Docker Buildx🔧
|
- name: Set up Docker Buildx🔧
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
|
||||||
- name: 打包并发布镜像📦
|
- name: 打包并发布镜像📦
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
FROM python:3.10-alpine
|
FROM python:3.10-alpine
|
||||||
|
|
||||||
RUN pip install -r requirements.txt
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
CMD ["python", "main.py"]
|
CMD ["python", "main.py"]
|
||||||
Loading…
x
Reference in New Issue
Block a user