remove more

This commit is contained in:
leehk 2025-04-13 07:43:46 +08:00
parent 81e1ddc1c3
commit 4c503415a6
2 changed files with 6 additions and 7 deletions

View File

@ -21,10 +21,7 @@ jobs:
- name: Cleanup Docker resources
if: always()
run: |
docker system prune -a -f --volumes \
&& docker container prune -f \
&& docker image prune -f \
&& docker volume prune -f
docker system prune -a -f --volumes
- name: Check disk space
run: df -h
- name: Checkout
@ -50,9 +47,13 @@ jobs:
- name: Push image
run: |
docker push ${{ env.IMAGE }}:latest
- name: Check disk space
run: df -h
- name: Cleanup Docker resources
if: always()
run: docker system prune -a -f --volumes
- name: Check disk space
run: df -h
test:
name: Test Docker Image

View File

@ -21,14 +21,13 @@ RUN apt-get update \
# install python dependencies
RUN pip install --upgrade pip setuptools wheel -i https://pypi.tuna.tsinghua.edu.cn/simple && rm -rf ~/.cache/pip
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv && rm -rf ~/.cache/pip
COPY ./Pipfile .
RUN pipenv install --deploy --dev
# add app
COPY . /usr/src/app
RUN pipenv run pip install black==23.12.1 flake8==7.0.0 isort==5.13.2
# RUN pipenv run pip install black==23.12.1 flake8==7.0.0 isort==5.13.2
# RUN pipenv run flake8 .
# RUN pipenv run black --exclude=migrations . --check
# RUN pipenv run isort . --check-only
@ -67,7 +66,6 @@ RUN apt-get update \
# install python dependencies
COPY --from=builder /usr/src/app/Pipfile .
RUN pip install --upgrade pip setuptools wheel -i https://pypi.tuna.tsinghua.edu.cn/simple && rm -rf ~/.cache/pip
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv && rm -rf ~/.cache/pip
RUN pipenv install --deploy --dev
RUN pipenv run pip install "uvicorn[standard]==0.26.0"